1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-04 15:49:42 +02:00

* 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>.
This commit is contained in:
Paul Eggert
2011-07-14 22:06:46 -07:00
parent be6120b5cc
commit feb0b08c0d
+3 -2
View File
@@ -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. */