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