Mesa (mesa_7_7_branch): scons: Define _DARWIN_C_SOURCE on Darwin builds.

Vinson Lee vlee at kemper.freedesktop.org
Sun Jan 24 05:07:58 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Jan 23 21:05:58 2010 -0800

scons: Define _DARWIN_C_SOURCE on Darwin builds.

---

 SConstruct |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/SConstruct b/SConstruct
index f43c10c..455b471 100644
--- a/SConstruct
+++ b/SConstruct
@@ -110,6 +110,8 @@ if platform in ('posix', 'linux', 'freebsd', 'darwin'):
 		'PTHREADS',
 		'HAVE_POSIX_MEMALIGN',
 	])
+	if platform == 'darwin':
+		env.Append(CPPDEFINES = ['_DARWIN_C_SOURCE'])
 	env.Append(CPPPATH = ['/usr/X11R6/include'])
 	env.Append(LIBPATH = ['/usr/X11R6/lib'])
 	env.Append(LIBS = [




More information about the mesa-commit mailing list