From d57ba16ae3943a93071ef1bbab4a13725b8ea20c Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 23 Jan 2010 21:05:58 -0800 Subject: [PATCH] scons: Define _DARWIN_C_SOURCE on Darwin builds. --- SConstruct | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SConstruct b/SConstruct index f43c10cecb3..455b4719db9 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 = [ -- 2.30.2