waf: Do not use standards.h on darwin
authorVolker Lendecke <vl@samba.org>
Sat, 10 Mar 2012 09:26:10 +0000 (10:26 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 11 Mar 2012 11:35:08 +0000 (12:35 +0100)
We get a nasty warning every time we include that

buildtools/wafsamba/wscript

index 5c5e249758c36a64083499b9050c0c4e77c87b6d..094f9cc5b4b30f7401c6c61479080c1764b23288 100755 (executable)
@@ -350,7 +350,12 @@ def configure(conf):
     conf.CHECK_HEADERS('stdio.h sys/types.h sys/stat.h stdlib.h stddef.h memory.h string.h',
                        add_headers=True)
     conf.CHECK_HEADERS('strings.h inttypes.h stdint.h unistd.h minix/config.h', add_headers=True)
-    conf.CHECK_HEADERS('ctype.h standards.h stdbool.h stdint.h stdarg.h vararg.h', add_headers=True)
+    conf.CHECK_HEADERS('ctype.h', add_headers=True)
+
+    if sys.platform != 'darwin':
+        conf.CHECK_HEADERS('standards.h', add_headers=True)
+
+    conf.CHECK_HEADERS('stdbool.h stdint.h stdarg.h vararg.h', add_headers=True)
     conf.CHECK_HEADERS('limits.h assert.h')
 
     # see if we need special largefile flags