Mesa (master): mesa: Fix Mac OS build.

Alex Deucher agd5f at kemper.freedesktop.org
Thu Oct 22 16:30:26 UTC 2009


Module: Mesa
Branch: master
Commit: ca940a73a72c68c461344d27f9d1fac31cd73819
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca940a73a72c68c461344d27f9d1fac31cd73819

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Oct 20 10:43:46 2009 -0600

mesa: Fix Mac OS build.

strtod_l needs the xlocale.h header on Mac OS. It's possible other
non-Linux OSes would need this header too.

---

 src/mesa/main/imports.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 87cb5ce..30fa559 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -50,6 +50,9 @@
 
 #ifdef _GNU_SOURCE
 #include <locale.h>
+#ifdef __APPLE__
+#include <xlocale.h>
+#endif
 #endif
 
 




More information about the mesa-commit mailing list