summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-01-05 09:34:36 +0100
committerVolker Lendecke <vl@samba.org>2017-01-08 22:30:02 +0100
commit0127bdd33b251a52c6ffc44b6cb3b82b16a80741 (patch)
tree2d57d9089fd3097df8ecd9f87e6d8142b4d2acf0 /lib
parent3d1cdb70fd45b36c0fa39ec7527fbb44855ed8dd (diff)
downloadsamba-0127bdd33b251a52c6ffc44b6cb3b82b16a80741.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. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Sun Jan 8 22:30:03 CET 2017 on sn-devel-144
Diffstat (limited to 'lib')
-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 c69a069e4b3..1dbeacfff66 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