diff options
Diffstat (limited to 'testing/btrfs-progs-unstable/btrfs-progs-build-fixes.patch')
-rw-r--r-- | testing/btrfs-progs-unstable/btrfs-progs-build-fixes.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/testing/btrfs-progs-unstable/btrfs-progs-build-fixes.patch b/testing/btrfs-progs-unstable/btrfs-progs-build-fixes.patch deleted file mode 100644 index d189c5a77..000000000 --- a/testing/btrfs-progs-unstable/btrfs-progs-build-fixes.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- btrfs-progs-0.19/btrfsck.c -+++ btrfs-progs-0.19/btrfsck.c -@@ -21,6 +21,9 @@ - #include <stdio.h> - #include <stdlib.h> - #include <fcntl.h> -+#include <sys/types.h> -+#include <sys/stat.h> -+#include <unistd.h> - #include "kerncompat.h" - #include "ctree.h" - #include "disk-io.h" ---- btrfs-progs-0.19/mkfs.c -+++ btrfs-progs-0.19/mkfs.c -@@ -341,7 +341,7 @@ int main(int ac, char **av) - u64 alloc_start = 0; - u64 metadata_profile = BTRFS_BLOCK_GROUP_RAID1 | BTRFS_BLOCK_GROUP_DUP; - u64 data_profile = BTRFS_BLOCK_GROUP_RAID0; -- u32 leafsize = getpagesize(); -+ u32 leafsize = sysconf(_SC_PAGESIZE); - u32 sectorsize = 4096; - u32 nodesize = leafsize; - u32 stripesize = 4096; -@@ -398,7 +398,7 @@ int main(int ac, char **av) - print_usage(); - } - } -- sectorsize = max(sectorsize, (u32)getpagesize()); -+ sectorsize = max(sectorsize, (u32)sysconf(_SC_PAGESIZE)); - if (leafsize < sectorsize || (leafsize & (sectorsize - 1))) { - fprintf(stderr, "Illegal leafsize %u\n", leafsize); - exit(1); |