summaryrefslogtreecommitdiffstats
path: root/source3/smbd/statvfs.c
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2012-03-02 01:34:16 +0100
committerVolker Lendecke <vl@samba.org>2012-03-02 10:30:07 +0100
commit8bdc2890999c850519913be0e829e9ced979ac2f (patch)
tree41657f95b3e2d4a7ad487a248dcf7c3d0e19f9d8 /source3/smbd/statvfs.c
parentdcb1cd293364b5269aaf3b0ac0e475aeb18e9bab (diff)
downloadsamba-8bdc2890999c850519913be0e829e9ced979ac2f.tar.gz
samba-8bdc2890999c850519913be0e829e9ced979ac2f.tar.xz
samba-8bdc2890999c850519913be0e829e9ced979ac2f.zip
s3: Further fix for bug 8777
Diffstat (limited to 'source3/smbd/statvfs.c')
-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 7265ee74c6..1e72a8e48b 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(MNT_RDONLY)
+#elif defined(BSD) && defined(BSD_STATVFS_BSIZE)
static int bsd_statvfs(const char *path, vfs_statvfs_struct *statbuf)
{
struct statfs statfs_buf;
@@ -172,7 +172,7 @@ int sys_statvfs(const char *path, vfs_statvfs_struct *statbuf)
{
#if defined(DARWINOS)
return darwin_statvfs(path, statbuf);
-#elif defined(BSD) && defined(MNT_RDONLY)
+#elif defined(BSD) && defined(BSD_STATVFS_BSIZE)
return bsd_statvfs(path, statbuf);
#elif defined(STAT_STATVFS) && defined(HAVE_FSID_INT)
return linux_statvfs(path, statbuf);