rid -Wall statvfs warning on solaris 8

This commit is contained in:
Doug MacEachern 2009-05-22 10:16:01 -07:00
parent cb7b440c0c
commit a76768c30f
1 changed files with 8 additions and 1 deletions

View File

@ -75,8 +75,15 @@ int sigar_statvfs(sigar_t *sigar,
{
struct statvfs buf;
sigar_uint64_t val, bsize;
int status =
#if defined(__sun) && !defined(_LP64)
/* http://bugs.opensolaris.org/view_bug.do?bug_id=4462986 */
statvfs(dirname, (void *)&buf);
#else
statvfs(dirname, &buf);
#endif
if (statvfs(dirname, &buf) != 0) {
if (status != 0) {
return errno;
}