replace: Include sysmacros.h
authorAndreas Schneider <asn@samba.org>
Thu, 5 Jan 2017 08:34:36 +0000 (09:34 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 8 Jan 2017 21:30:02 +0000 (22:30 +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.

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

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