]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
wafsamba: use -D_XOPEN_SOURCE=700 for the build
authorStefan Metzmacher <metze@samba.org>
Fri, 14 May 2010 11:21:30 +0000 (13:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 14 May 2010 11:38:38 +0000 (13:38 +0200)
Some systems set this automaticly via -D_GNU_SOURCE=1,
but on others we need to set it ourself (e.g. Mac OS 10.4)

metze

buildtools/wafsamba/wscript

index 56f2e60a5beb4a4431625520c649806d22651ce9..88a19fe914945c4423ac839c7248c5a7c755ba2d 100644 (file)
@@ -229,6 +229,7 @@ def configure(conf):
 
     conf.DEFINE('_GNU_SOURCE', 1, add_to_cflags=True)
     conf.DEFINE('_XOPEN_SOURCE_EXTENDED', 1, add_to_cflags=True)
+    conf.DEFINE('_XOPEN_SOURCE', 700, add_to_cflags=True)
 
     # get the base headers we'll use for the rest of the tests
     conf.CHECK_HEADERS('stdio.h sys/types.h sys/stat.h stdlib.h stddef.h memory.h string.h',