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>
Mon, 14 Mar 2016 21:44:49 +0000 (17:44 -0400)
    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 cbc3ca97b832bae46beaace384c3d6523d7916b6..7715c6e691289d054534102d3018edb7c6e2b16e 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <assert.h>
 #include <sys/param.h>
+#include <sys/sysmacros.h>
 #include <sys/types.h>
 #include <sys/uio.h>
 #include <inttypes.h>
index 254e94ce8054ac0f4dc1f75806701ac1c4bfacdc..42117ed31efc8b85e42732df4ed5cec7f8941957 100644 (file)
@@ -41,6 +41,7 @@
 #include <mntent.h>
 #include <sys/inotify.h>
 #include <sys/statfs.h>
+#include <sys/sysmacros.h>
 
 #include "macro.h"
 #include "missing.h"