summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-03-21 11:55:46 +0100
committerKarolin Seeger <kseeger@samba.org>2019-03-28 17:42:25 +0000
commit77b4430bd5ed540a8b3b68c814920abe5621b66d (patch)
tree35a0b0b3b2b393ae96bbd1a1b4a3afd713c6e79c
parentcf7d657a4d04cb3016b9f1c902f767123d3d1c34 (diff)
downloadsamba-77b4430bd5ed540a8b3b68c814920abe5621b66d.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> (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
-rw-r--r--source3/wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 799ee08dbb5..a32899d89cd 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -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',