On 06/20/2012 05:04 AM, Rich Felker wrote: > Some more updates.. > > On Mon, Jun 18, 2012 at 12:49:44AM +0200, Bruno Haible wrote: >> When I compile all of gnulib, I also get a compilation error >> (may be a musl or a gnulib problem, haven't investigated): >> fsusage.c: In function 'get_fs_usage': >> fsusage.c:222:17: error: storage size of 'fsd' isn't known >> fsusage.c:224:3: warning: implicit declaration of function 'statfs' >> [-Wimplicit-function-declaration] >> fsusage.c:222:17: warning: unused variable 'fsd' [-Wunused-variable] >> make[4]: *** [fsusage.o] Error 1 > > This looks like a gnulib problem. On musl, statvfs should get used, > and this code should not even be compiled... Judging from the > comments, it looks like a hard-coded workaround for broken glibc > and/or Linux versions, but the header include seems to be missing in > the workaround case...
This is addressed in different ways in these two commits: http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=commit;h=defe5737 http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=commit;h=2ab2617e cheers, Pádraig.