]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 28 Mar 2019 17:42:25 +0000 (17:42 +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>
(cherry picked from commit eace58b539a382c61edd7c2be6fdfab31114719f)

Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-8-test): Thu Mar 28 17:42:25 UTC 2019 on sn-devel-144

source3/wscript

index 799ee08dbb501024e418c761f088469ca087a625..a32899d89cd84043c522dbc5c21329e6366cb6f0 100644 (file)
@@ -1232,6 +1232,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',