From df7593c2838657ee6b4568973b98e638fd6c1e57 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 21 Mar 2019 11:55:46 +0100 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison (cherry picked from commit eace58b539a382c61edd7c2be6fdfab31114719f) --- source3/wscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/wscript b/source3/wscript index ae57bc6ad3b..6feda384d66 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1219,6 +1219,9 @@ main() { #include #endif #include +#if defined(HAVE_SYS_SYSMACROS_H) +#include +#endif main() { dev_t dev = makedev(1,2); return 0; } ''', 'HAVE_MAKEDEV', -- 2.21.0