summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r--source3/lib/system.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 18e84d66f0..52be504c52 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -186,8 +186,10 @@ int sys_statvfs( const char *path, SMB_STRUCT_STATVFS *fsd)
{
#if defined(STAT_STATVFS64)
return statvfs64(path, fsd);
-#else
+#elif defined(STAT_STATVFS)
return statvfs(path, fsd);
+#else
+ return -1;
#endif
}