Index: samba/buildtools/wafsamba/wscript =================================================================== --- samba.orig/buildtools/wafsamba/wscript +++ samba/buildtools/wafsamba/wscript @@ -357,7 +357,7 @@ def configure(conf): conf.check_cfg(atleast_pkgconfig_version='0.0.0') conf.DEFINE('_GNU_SOURCE', 1, add_to_cflags=True) - conf.DEFINE('_XOPEN_SOURCE_EXTENDED', 1, add_to_cflags=True) + conf.DEFINE('__EXTENSIONS__', 1, 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',