rid -Wall statvfs warning on solaris 8

This commit is contained in:
Doug MacEachern 2009-05-22 10:16:01 -07:00
parent cb8eb6b183
commit 26872fdda0
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;
}