X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=SConstruct;h=455b4719db91d8a839eb872468c9269149638b13;hb=bc75ec0f3824176f3fd7182846b3ec36051945b3;hp=f43c10cecb3fef5eb98aff5029f5c66a4164ee36;hpb=0d4a05445c6b47b93269a3829afbe509ffec4817;p=mesa.git 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 = [