summaryrefslogtreecommitdiff
path: root/cmds-device.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-01-19 13:06:17 -0500
committerDavid Sterba <dsterba@suse.cz>2013-01-23 19:27:13 +0100
commit5cdc0913dd2e7db37b948464e8cb22fd2982a65e (patch)
treec63d50fa20e40e936cbcb77453955ebc2e7b8234 /cmds-device.c
parentcdbe16b3093aa565330a14860f307ac91e0310e7 (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 'cmds-device.c')
0 files changed, 0 insertions, 0 deletions