From 473b974a06b209a2c2560d6611ea40498a2c97d5 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 28 Mar 2012 09:49:48 +1100 Subject: build: do not use HAVE_EXPLICIT_LARGEFILE_SUPPORT and *64() fucntions any more --- lib/util/fsusage.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/util/fsusage.c') diff --git a/lib/util/fsusage.c b/lib/util/fsusage.c index e5f2678a9f..bf07baf029 100644 --- a/lib/util/fsusage.c +++ b/lib/util/fsusage.c @@ -128,7 +128,7 @@ _PUBLIC_ int sys_fsusage(const char *path, uint64_t *dfree, uint64_t *dsize) #endif /* STAT_STATFS4 */ -#if defined(STAT_STATVFS) || defined(STAT_STATVFS64) /* SVR4 */ +#if defined(STAT_STATVFS) /* SVR4 */ #ifdef HAVE_FRSIZE # define CONVERT_BLOCKS(B) \ adjust_blocks ((uint64_t)(B), fsd.f_frsize ? (uint64_t)fsd.f_frsize : (uint64_t)fsd.f_bsize, (uint64_t)512) @@ -137,13 +137,8 @@ _PUBLIC_ int sys_fsusage(const char *path, uint64_t *dfree, uint64_t *dsize) adjust_blocks ((uint64_t)(B), (uint64_t)fsd.f_bsize, (uint64_t)512) #endif -#ifdef STAT_STATVFS64 - struct statvfs64 fsd; - if (statvfs64(path, &fsd) < 0) return -1; -#else struct statvfs fsd; if (statvfs(path, &fsd) < 0) return -1; -#endif /* f_frsize isn't guaranteed to be supported. */ -- cgit