summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-07-14 22:06:46 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-07-14 22:08:04 -0700
commitfeb0b08c0d030fbeb94ef4f7b6f7f701ffb42af5 (patch)
treef4c7b73e5b96b1be16d00022389f7caf964ed752 /src
parentbe6120b5ccc02f4a9a0216f9d43eabdeb5f0dba0 (diff)
downloadcoreutils-feb0b08c0d030fbeb94ef4f7b6f7f701ffb42af5.tar.xz
* src/fiemap.h (struct fiemap.fm_extents): Change size to 1.
This is for portability to non-GCC C89 and C99 compilers. Original problem, on NonStop, reported by Joachim Schmitz in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9077>.
Diffstat (limited to 'src')
-rw-r--r--src/fiemap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fiemap.h b/src/fiemap.h
index 1938c749e..e7243b41b 100644
--- a/src/fiemap.h
+++ b/src/fiemap.h
@@ -51,8 +51,9 @@ struct fiemap
uint32_t fm_reserved;
- /* Array of mapped extents(out). */
- struct fiemap_extent fm_extents[0];
+ /* Array of mapped extents(out).
+ The actual size is given by fm_extent_count. */
+ struct fiemap_extent fm_extents[1];
};
/* The maximum offset can be mapped for a file. */