diff options
author | Baruch Siach <baruch@tkos.co.il> | 2017-10-31 14:57:54 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-11-14 15:59:01 +0100 |
commit | 658cc4daa6ed6e6463cba2f30731abd9a91a7b2d (patch) | |
tree | 693de10894572f198ad885ccb6dd1b29c16976bf /convert | |
parent | 8c36786c8198bb7e440723240d9775d868d8409c (diff) |
btrfs-progs: convert: add missing types header
Build with musl libc needs the sys/types.h header for the dev_t type,
since this header is not included indirectly. This fixes the following
build failure:
In file included from convert/source-fs.c:23:0:
./convert/source-fs.h:112:1: error: unknown type name ‘dev_t’
dev_t decode_dev(u32 dev);
^~~~~
convert/source-fs.c:31:1: error: unknown type name ‘dev_t’
dev_t decode_dev(u32 dev)
^~~~~
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'convert')
-rw-r--r-- | convert/source-fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/convert/source-fs.h b/convert/source-fs.h index 23f33567..4e5babef 100644 --- a/convert/source-fs.h +++ b/convert/source-fs.h @@ -19,6 +19,7 @@ #include "kerncompat.h" #include <linux/kdev_t.h> +#include <sys/types.h> #include <pthread.h> #define CONV_IMAGE_SUBVOL_OBJECTID BTRFS_FIRST_FREE_OBJECTID |