bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fsusage.c fails to build on GNU


From: Ludovic Courtès
Subject: fsusage.c fails to build on GNU
Date: Mon, 02 Jul 2012 22:00:07 +0200
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.1 (gnu/linux)

Hello,

On GNU/Hurd, ‘struct statfs’ is defined in <sys/statfs.h>.  However,
fsusage.c ends up including only <sys/statvfs.h>, and thus, ‘struct
statfs’ and the ‘statfs’ function aren’t defined/declared, leading to:

  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]

(Seen on <http://hydra.nixos.org/build/2751266>.)

The fix appears to be to include <sys/statfs.h> when STAT_STATFS2_FRSIZE
is defined.

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]