Sync with gnulib ffe10f3d20c2eb77efd56b68f2c22b2a810c289d.

fsusage: port back to Solaris

* src/filemanager/mountlist.c (get_fs_usage): Fix busted logic causing
compile-time error (fsd not declared) on Solaris 10.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-07-29 12:37:14 +04:00
parent be2f25862b
commit d53dc96704

View File

@ -1496,8 +1496,9 @@ get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp)
#endif
#if (defined STAT_STATVFS64 \
|| (!defined STAT_STATFS2_FS_DATA && !defined STAT_READ_FILSYS))
#if (defined STAT_STATVFS64 || defined STAT_STATFS3_OSF1 \
|| defined STAT_STATFS2_FRSIZE || defined STAT_STATFS2_BSIZE \
|| defined STAT_STATFS2_FSIZE || defined STAT_STATFS4)
fsp->fsu_blocks = PROPAGATE_ALL_ONES (fsd.f_blocks);
fsp->fsu_bfree = PROPAGATE_ALL_ONES (fsd.f_bfree);
@ -1508,6 +1509,7 @@ get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp)
#endif
(void) disk; /* avoid argument-unused warning */
return 0;
}
#endif /* HAVE_INFOMOUNT */