Skip to content

Commit

Permalink
include sys/sysmacros.h in more places
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vapier committed Mar 15, 2016
1 parent ca9bc74 commit 27d13af
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/basic/macro.h
Expand Up @@ -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)))
Expand Down
1 change: 1 addition & 0 deletions src/basic/util.h
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions src/libudev/libudev.h
Expand Up @@ -21,6 +21,7 @@
#define _LIBUDEV_H_

#include <stdarg.h>
#include <sys/sysmacros.h>
#include <sys/types.h>

#ifdef __cplusplus
Expand Down
1 change: 1 addition & 0 deletions src/systemd/sd-device.h
Expand Up @@ -22,6 +22,7 @@
***/

#include <inttypes.h>
#include <sys/sysmacros.h>
#include <sys/types.h>

#include "_sd-common.h"
Expand Down
1 change: 1 addition & 0 deletions src/udev/udev.h
Expand Up @@ -19,6 +19,7 @@
*/

#include <sys/param.h>
#include <sys/sysmacros.h>
#include <sys/types.h>

#include "libudev.h"
Expand Down

0 comments on commit 27d13af

Please sign in to comment.