replace: Include sysmacros.h
authorAndreas Schneider <asn@samba.org>
Thu, 5 Jan 2017 08:34:36 +0000 (09:34 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 15 Mar 2017 09:00:27 +0000 (10:00 +0100)
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)

lib/replace/replace.h

index c69a069e4b3b44eaa964696f27cef792bfd8a1be..1dbeacfff66ef49ee3aa5744e844fc9a2a19d0a3 100644 (file)
 #include <sys/types.h>
 #endif
 
+#ifdef HAVE_SYS_SYSMACROS_H
+#include <sys/sysmacros.h>
+#endif
+
 #ifdef HAVE_SETPROCTITLE_H
 #include <setproctitle.h>
 #endif