s3:waf: Fix the detection of makdev() macro on Linux
authorAndreas Schneider <asn@samba.org>
Thu, 21 Mar 2019 10:55:46 +0000 (11:55 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 21 Mar 2019 21:40:20 +0000 (21:40 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13853

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Mar 21 21:40:20 UTC 2019 on sn-devel-144

source3/wscript

index e0db9839795d468ddd7e265c985cf721ecd6944c..c93b6056f291596e0ab6b7c8e6f6fdb636baf7cf 100644 (file)
@@ -1219,6 +1219,9 @@ main() {
 #include <unistd.h>
 #endif
 #include <sys/types.h>
+#if defined(HAVE_SYS_SYSMACROS_H)
+#include <sys/sysmacros.h>
+#endif
 main() { dev_t dev = makedev(1,2); return 0; }
 ''',
         'HAVE_MAKEDEV',