diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-03-14 17:44:49 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-03-14 23:29:10 -0400 |
commit | 27d13af71c3af6b2f9b60556d2c046dbb6e36e23 (patch) | |
tree | 4fa85c4719310dc25b843248fc7151484dd3b05d /src/basic | |
parent | ca9bc74bd0c80492af1f1b59f34094eddbea3c33 (diff) |
include sys/sysmacros.h in more places
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.
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/macro.h | 1 | ||||
-rw-r--r-- | src/basic/util.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h index c34441d75d..b36a95675a 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -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))) diff --git a/src/basic/util.h b/src/basic/util.h index e095254b57..286db05159 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -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> |