a3a04f
From 69c97f1806f72a61f194acaaba7f2b919cb91227 Mon Sep 17 00:00:00 2001
a3a04f
From: Andreas Schneider <asn@samba.org>
a3a04f
Date: Thu, 5 Jan 2017 09:34:36 +0100
a3a04f
Subject: [PATCH] replace: Include sysmacros.h
a3a04f
a3a04f
In the GNU C Library, "makedev" is defined by <sys/sysmacros.h>. For
a3a04f
historical compatibility, it is currently defined by <sys/types.h> as
a3a04f
well, but it is planned to remove this soon.
a3a04f
a3a04f
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12686
a3a04f
a3a04f
Signed-off-by: Andreas Schneider <asn@samba.org>
a3a04f
Reviewed-by: Volker Lendecke <vl@samba.org>
a3a04f
a3a04f
(cherry picked from commit 0127bdd33b251a52c6ffc44b6cb3b82b16a80741)
a3a04f
---
a3a04f
 lib/replace/replace.h | 4 ++++
a3a04f
 1 file changed, 4 insertions(+)
a3a04f
a3a04f
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
a3a04f
index c69a069e4b3..1dbeacfff66 100644
a3a04f
--- a/lib/replace/replace.h
a3a04f
+++ b/lib/replace/replace.h
a3a04f
@@ -171,6 +171,10 @@
a3a04f
 #include <sys/types.h>
a3a04f
 #endif
a3a04f
 
a3a04f
+#ifdef HAVE_SYS_SYSMACROS_H
a3a04f
+#include <sys/sysmacros.h>
a3a04f
+#endif
a3a04f
+
a3a04f
 #ifdef HAVE_SETPROCTITLE_H
a3a04f
 #include <setproctitle.h>
a3a04f
 #endif
a3a04f
-- 
a3a04f
2.12.0
a3a04f