summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-28 09:49:48 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-04-05 02:39:08 +0200
commit473b974a06b209a2c2560d6611ea40498a2c97d5 (patch)
tree1596d1cc3dbd76fa4e967d8006ec7ef4409ad4f1 /lib
parentb4e58111b9ee66ed279eaf88ee8ec523a17220f1 (diff)
downloadsamba-473b974a06b209a2c2560d6611ea40498a2c97d5.tar.gz
samba-473b974a06b209a2c2560d6611ea40498a2c97d5.tar.bz2
samba-473b974a06b209a2c2560d6611ea40498a2c97d5.zip
build: do not use HAVE_EXPLICIT_LARGEFILE_SUPPORT and *64() fucntions any more
Diffstat (limited to 'lib')
-rw-r--r--lib/util/fsusage.c7
1 files changed, 1 insertions, 6 deletions
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. */