build: On AIX we need _XOPEN_SOURCE >= 500 for CLOCK_REALTIME
authorMatthieu Patou <mat@matws.net>
Sat, 11 Dec 2010 10:13:42 +0000 (13:13 +0300)
committerMatthieu Patou <mat@samba.org>
Sat, 11 Dec 2010 13:48:21 +0000 (14:48 +0100)
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Dec 11 14:48:21 CET 2010 on sn-devel-104

buildtools/wafsamba/wscript

index 5756df4cb035a9f5289c2ec69004922d90e9ec4f..2b73f7f25ccb06bb702b72fff65952a6c7eff0e9 100644 (file)
@@ -300,6 +300,9 @@ def configure(conf):
     else:
         conf.env.HAVE_LD_VERSION_SCRIPT = False
 
+    if sys.platform == "aix5":
+        conf.DEFINE('_XOPEN_SOURCE', 500, add_to_cflags=True)
+
     # we should use the PIC options in waf instead
     # Some compilo didn't support -fPIC but just print a warning
     if conf.env['COMPILER_CC'] == "suncc":