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.
This commit is contained in:
Mike Frysinger 2016-03-14 17:44:49 -04:00
parent ca9bc74bd0
commit 27d13af71c
5 changed files with 5 additions and 0 deletions

View 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)))

View 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>

View File

@ -21,6 +21,7 @@
#define _LIBUDEV_H_
#include <stdarg.h>
#include <sys/sysmacros.h>
#include <sys/types.h>
#ifdef __cplusplus

View File

@ -22,6 +22,7 @@
***/
#include <inttypes.h>
#include <sys/sysmacros.h>
#include <sys/types.h>
#include "_sd-common.h"

View File

@ -19,6 +19,7 @@
*/
#include <sys/param.h>
#include <sys/sysmacros.h>
#include <sys/types.h>
#include "libudev.h"