OSDN Git Service

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 87cb5ce..30fa559 100644 (file)
@@ -50,6 +50,9 @@
 
 #ifdef _GNU_SOURCE
 #include <locale.h>
+#ifdef __APPLE__
+#include <xlocale.h>
+#endif
 #endif