chiark / gitweb /
include sys/sysmacros.h in more places
authorMike Frysinger <vapier@gentoo.org>
Mon, 14 Mar 2016 21:44:49 +0000 (17:44 -0400)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000 (10:12 +0200)
Since glibc is moving away from implicitly including sys/sysmacros.h
all the time via sys/types.h, include the header directly in more
places.  This seems to cover most makedev/major/minor usage.

src/basic/macro.h
src/basic/util.h

index c34441d75dcd6f6e94cb91cb6bc5170ee234527d..b36a95675ad7224ec1a4cc9b525ec065a78eec0f 100644 (file)
@@ -23,6 +23,7 @@
 #include <inttypes.h>
 #include <stdbool.h>
 #include <sys/param.h>
+#include <sys/sysmacros.h>
 #include <sys/types.h>
 
 #define _printf_(a,b) __attribute__ ((format (printf, a, b)))
index 179505de8588482b14e13a866d46956e4eecb907..1fe660b62098494511c9db898c26c8f646330485 100644 (file)
@@ -36,6 +36,7 @@
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/statfs.h>
+#include <sys/sysmacros.h>
 #include <sys/types.h>
 #include <time.h>
 #include <unistd.h>