mesa: Fix Mac OS build.
authorVinson Lee <vlee@vmware.com>
Tue, 20 Oct 2009 16:43:46 +0000 (10:43 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 20 Oct 2009 16:43:49 +0000 (10:43 -0600)
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

index 87cb5ce0fbc76ef13f20cc567cd9ecb22457e7b1..30fa55997ef0783edc51ff2afff6587eedc8f80b 100644 (file)
@@ -50,6 +50,9 @@
 
 #ifdef _GNU_SOURCE
 #include <locale.h>
+#ifdef __APPLE__
+#include <xlocale.h>
+#endif
 #endif