summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-03-21 11:55:46 +0100
committerJeremy Allison <jra@samba.org>2019-03-21 21:40:20 +0000
commiteace58b539a382c61edd7c2be6fdfab31114719f (patch)
treeeabdb7f61d210a65c8f632f2cb63e652f691f14a /source3
parente1ba84a5f2217a0391d1ca0678e4b36c3e17b9f3 (diff)
downloadsamba-eace58b539a382c61edd7c2be6fdfab31114719f.tar.gz
s3:waf: Fix the detection of makdev() macro on Linux
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
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index e0db9839795..c93b6056f29 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -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',