diff options
author | Mike Frysinger | 2016-03-07 23:26:33 +0100 |
---|---|---|
committer | Karel Zak | 2016-03-08 14:21:55 +0100 |
commit | 46a40c018438b7b2b25083a5e5a4a21055a0c1e9 (patch) | |
tree | 157502c9e879d902ad85008b95e763c8fb98ab69 /disk-utils | |
parent | tests: don't compare btrfs mount options (diff) | |
download | kernel-qcow2-util-linux-46a40c018438b7b2b25083a5e5a4a21055a0c1e9.tar.gz kernel-qcow2-util-linux-46a40c018438b7b2b25083a5e5a4a21055a0c1e9.tar.xz kernel-qcow2-util-linux-46a40c018438b7b2b25083a5e5a4a21055a0c1e9.zip |
include sysmacros.h where used
BSD/Linux systems stick major/minor/makedev in sysmacros.h. Newer Linux
libraries have been moving away from including sysmacros.h implicitly via
sys/types.h, so include it directly.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/fsck.c | 1 | ||||
-rw-r--r-- | disk-utils/partx.c | 1 | ||||
-rw-r--r-- | disk-utils/sfdisk.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/disk-utils/fsck.c b/disk-utils/fsck.c index 6f9e78b34..2b7e7122c 100644 --- a/disk-utils/fsck.c +++ b/disk-utils/fsck.c @@ -30,6 +30,7 @@ #include <sys/types.h> #include <sys/wait.h> #include <sys/stat.h> +#include <sys/sysmacros.h> #include <sys/file.h> #include <fcntl.h> #include <limits.h> diff --git a/disk-utils/partx.c b/disk-utils/partx.c index 50bd6a4f8..955166b4b 100644 --- a/disk-utils/partx.c +++ b/disk-utils/partx.c @@ -19,6 +19,7 @@ #include <unistd.h> #include <assert.h> #include <dirent.h> +#include <sys/sysmacros.h> #include <blkid.h> #include <libsmartcols.h> diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index 3dfdd9e9a..7ce7bc911 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -29,6 +29,7 @@ #include <errno.h> #include <getopt.h> #include <sys/stat.h> +#include <sys/sysmacros.h> #include <assert.h> #include <fcntl.h> #include <libsmartcols.h> |