wok-6.x view btrfs-progs/stuff/btrfs-progs-build-fixes.patch @ rev 14782
gpxe: remove wrong triggers
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 05 15:23:38 2013 +0200 (2013-07-05) |
parents | |
children |
line source
1 --- btrfs-progs-0.19/btrfsck.c
2 +++ btrfs-progs-0.19/btrfsck.c
3 @@ -21,6 +21,9 @@
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <fcntl.h>
7 +#include <sys/types.h>
8 +#include <sys/stat.h>
9 +#include <unistd.h>
10 #include "kerncompat.h"
11 #include "ctree.h"
12 #include "disk-io.h"
13 --- btrfs-progs-0.19/mkfs.c
14 +++ btrfs-progs-0.19/mkfs.c
15 @@ -341,7 +341,7 @@ int main(int ac, char **av)
16 u64 alloc_start = 0;
17 u64 metadata_profile = BTRFS_BLOCK_GROUP_RAID1 | BTRFS_BLOCK_GROUP_DUP;
18 u64 data_profile = BTRFS_BLOCK_GROUP_RAID0;
19 - u32 leafsize = getpagesize();
20 + u32 leafsize = sysconf(_SC_PAGESIZE);
21 u32 sectorsize = 4096;
22 u32 nodesize = leafsize;
23 u32 stripesize = 4096;
24 @@ -398,7 +398,7 @@ int main(int ac, char **av)
25 print_usage();
26 }
27 }
28 - sectorsize = max(sectorsize, (u32)getpagesize());
29 + sectorsize = max(sectorsize, (u32)sysconf(_SC_PAGESIZE));
30 if (leafsize < sectorsize || (leafsize & (sectorsize - 1))) {
31 fprintf(stderr, "Illegal leafsize %u\n", leafsize);
32 exit(1);