summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-01-05 09:34:36 +0100
committerKarolin Seeger <kseeger@samba.org>2017-03-14 12:49:24 +0100
commit213759fb65881280cb467d96eb7289e4b55ee07e (patch)
treec823721ad96fb906e6f6c8d288ed606361fdd06b
parent9359b078b369738022a122ce3815b8a6e4806954 (diff)
downloadsamba-213759fb65881280cb467d96eb7289e4b55ee07e.tar.gz
replace: Include sysmacros.h
In the GNU C Library, "makedev" is defined by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but it is planned to remove this soon. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12686 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 0127bdd33b251a52c6ffc44b6cb3b82b16a80741)
-rw-r--r--lib/replace/replace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 7080373342a..926b3533bc8 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -171,6 +171,10 @@
#include <sys/types.h>
#endif
+#ifdef HAVE_SYS_SYSMACROS_H
+#include <sys/sysmacros.h>
+#endif
+
#ifdef HAVE_SETPROCTITLE_H
#include <setproctitle.h>
#endif