summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/common/xmlconfig.c1
-rw-r--r--src/mesa/drivers/x11/xm_tri.c1
-rw-r--r--src/mesa/main/compiler.h1
-rw-r--r--src/mesa/main/imports.c1
4 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c
index 518b4da994c..6357e92c59a 100644
--- a/src/mesa/drivers/dri/common/xmlconfig.c
+++ b/src/mesa/drivers/dri/common/xmlconfig.c
@@ -32,6 +32,7 @@
#include <assert.h>
#include <expat.h>
#include <fcntl.h>
+#include <math.h>
#include <unistd.h>
#include <errno.h>
#include "main/imports.h"
diff --git a/src/mesa/drivers/x11/xm_tri.c b/src/mesa/drivers/x11/xm_tri.c
index e9ec67640dc..528d10b2730 100644
--- a/src/mesa/drivers/x11/xm_tri.c
+++ b/src/mesa/drivers/x11/xm_tri.c
@@ -30,6 +30,7 @@
*/
+#include "c99_math.h"
#include "main/imports.h"
#include "main/mtypes.h"
#include "glxheader.h"
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index a700ff9eb23..e644e2359c3 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -35,7 +35,6 @@
#include <assert.h>
-#include <math.h>
#include "util/macros.h"
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 896b11e8233..752cf5a429f 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -43,6 +43,7 @@
*/
#include <stdarg.h>
+#include "c99_math.h"
#include "imports.h"
#include "context.h"
#include "mtypes.h"