summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-06-28 21:17:28 +0200
committerBjoern Jacke <bj@sernet.de>2012-06-28 23:07:23 +0200
commit7560b1cea6d2c0b2962f5802f724525fc0ec9bf9 (patch)
treedeee65e10d44536627ecdf14c701ebd87d0e039b /source3/smbd
parentf6ac6b8f3c40c99e7bc43d88ec5a2d95ecfc97a4 (diff)
downloadsamba-7560b1cea6d2c0b2962f5802f724525fc0ec9bf9.tar.gz
samba-7560b1cea6d2c0b2962f5802f724525fc0ec9bf9.tar.bz2
samba-7560b1cea6d2c0b2962f5802f724525fc0ec9bf9.zip
s3: fine tune and clean up statvfs tests
This should also fix the build on Tru64. Tru64 has a POSIX compliant statvfs() function while most *BSD systems ignore POSIX. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 23:07:23 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/statvfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/statvfs.c b/source3/smbd/statvfs.c
index 5cefe2d4c2..918867f7aa 100644
--- a/source3/smbd/statvfs.c
+++ b/source3/smbd/statvfs.c
@@ -97,7 +97,7 @@ static int darwin_statvfs(const char *path, vfs_statvfs_struct *statbuf)
return 0;
}
-#elif defined(BSD) && defined(BSD_STATVFS_BSIZE)
+#elif defined(BSD_STYLE_STATVFS)
static int bsd_statvfs(const char *path, vfs_statvfs_struct *statbuf)
{
struct statfs statfs_buf;
@@ -177,7 +177,7 @@ int sys_statvfs(const char *path, vfs_statvfs_struct *statbuf)
{
#if defined(DARWINOS)
return darwin_statvfs(path, statbuf);
-#elif defined(BSD) && defined(BSD_STATVFS_BSIZE)
+#elif defined(BSD_STYLE_STATVFS)
return bsd_statvfs(path, statbuf);
#elif defined(STAT_STATVFS) && defined(HAVE_FSID_INT)
return linux_statvfs(path, statbuf);