mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-11 03:31:17 +00:00
btrfs-progs: library: distribute sizes.h, fix build
The patch "btrfs-progs: Introduce kernel sizes to cleanup large
intermediate number" (a2203246ae
) was taken from kernel but not
properly ported so the build breaks because the header linux/sizes.h is
not exported.
The build tests of library do not cover the case when the macro
BTRFS_FLAT_INCLUDES is not defined (ie. an external build).
Reported-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
153d4e6c01
commit
87b971d0cc
2
Makefile
2
Makefile
@ -108,7 +108,7 @@ libbtrfs_objects = send-stream.o send-utils.o kernel-lib/rbtree.o btrfs-list.o \
|
|||||||
uuid-tree.o utils-lib.o rbtree-utils.o
|
uuid-tree.o utils-lib.o rbtree-utils.o
|
||||||
libbtrfs_headers = send-stream.h send-utils.h send.h kernel-lib/rbtree.h btrfs-list.h \
|
libbtrfs_headers = send-stream.h send-utils.h send.h kernel-lib/rbtree.h btrfs-list.h \
|
||||||
kernel-lib/crc32c.h kernel-lib/list.h kerncompat.h \
|
kernel-lib/crc32c.h kernel-lib/list.h kerncompat.h \
|
||||||
kernel-lib/radix-tree.h extent-cache.h \
|
kernel-lib/radix-tree.h kernel-lib/sizes.h extent-cache.h \
|
||||||
extent_io.h ioctl.h ctree.h btrfsck.h version.h
|
extent_io.h ioctl.h ctree.h btrfsck.h version.h
|
||||||
convert_objects = convert/main.o convert/common.o convert/source-fs.o \
|
convert_objects = convert/main.o convert/common.o convert/source-fs.o \
|
||||||
convert/source-ext2.o
|
convert/source-ext2.o
|
||||||
|
2
ctree.h
2
ctree.h
@ -34,7 +34,7 @@
|
|||||||
#include <btrfs/extent-cache.h>
|
#include <btrfs/extent-cache.h>
|
||||||
#include <btrfs/extent_io.h>
|
#include <btrfs/extent_io.h>
|
||||||
#include <btrfs/ioctl.h>
|
#include <btrfs/ioctl.h>
|
||||||
#include <linux/sizes.h>
|
#include <btrfs/sizes.h>
|
||||||
#endif /* BTRFS_FLAT_INCLUDES */
|
#endif /* BTRFS_FLAT_INCLUDES */
|
||||||
|
|
||||||
struct btrfs_root;
|
struct btrfs_root;
|
||||||
|
Loading…
Reference in New Issue
Block a user