rid -Wall statvfs warning on solaris 8
This commit is contained in:
parent
cb8eb6b183
commit
26872fdda0
|
@ -75,8 +75,15 @@ int sigar_statvfs(sigar_t *sigar,
|
||||||
{
|
{
|
||||||
struct statvfs buf;
|
struct statvfs buf;
|
||||||
sigar_uint64_t val, bsize;
|
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;
|
return errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue