diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-07-15 09:51:35 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-07-15 10:55:04 +0100 |
commit | 4f71710c420caa8d9efa93fb30c308976be0eda0 (patch) | |
tree | ae434a701e79c1f5446ff17643a7590f4937a5cf /src/extent-scan.c | |
parent | feb0b08c0d030fbeb94ef4f7b6f7f701ffb42af5 (diff) | |
download | coreutils-4f71710c420caa8d9efa93fb30c308976be0eda0.tar.xz |
build: avoid a fiemap compile failure on some systems
* src/fiemap.h (struct fiemap): Adjust the previous change
to the fiemap_extents array, which would also require changes
to the sizeof calculations in extent_scan_read().
Instead, only declare the fiemap_extents zero length array
on linux, which is the only platform that references this member.
This avoids a compilation failure on systems that don't support
this non standard construct. We don't use the equivalent C99
flexible array construct so as to have maximum portability.
* src/extent-scan.c: Cleanup. Remove a redundant #ifndef.
Diffstat (limited to 'src/extent-scan.c')
-rw-r--r-- | src/extent-scan.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/extent-scan.c b/src/extent-scan.c index 48dd564e5..37445b84d 100644 --- a/src/extent-scan.c +++ b/src/extent-scan.c @@ -24,11 +24,9 @@ #include "system.h" #include "extent-scan.h" +#include "fiemap.h" #include "xstrtol.h" -#ifndef HAVE_FIEMAP -# include "fiemap.h" -#endif /* Work around Linux kernel issues on BTRFS and EXT4 before 2.6.39. FIXME: remove in 2013, or whenever we're pretty confident |