diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-01-19 13:06:17 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-01-23 19:27:13 +0100 |
commit | 5cdc0913dd2e7db37b948464e8cb22fd2982a65e (patch) | |
tree | c63d50fa20e40e936cbcb77453955ebc2e7b8234 /btrfsck.c | |
parent | cdbe16b3093aa565330a14860f307ac91e0310e7 (diff) |
btrfs-progs: Use sysconf instead of getpagesize
Rawhide is getting cranky with posix compliance, and a few
things have stopped building.
getpagesize() is now only available -with- __USE_XOPEN_EXTENDED
or __USE_BSD, and NOT __USE_XOPEN2K.
_GNU_SOURCE must define __USE_XOPEN2K because getpagesize()
has gone away for mkfs. I gave up and used sysconf.
Also, something used to pull in stat that no longer does, so
things like S_ISREG weren't getting defined.
The following fixes things for me.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'btrfsck.c')
-rw-r--r-- | btrfsck.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -22,7 +22,9 @@ #include <stdlib.h> #include <unistd.h> #include <fcntl.h> +#include <sys/types.h> #include <sys/stat.h> +#include <unistd.h> #include <getopt.h> #include "kerncompat.h" #include "ctree.h" |