summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-18 00:30:28 +0000
committerJeremy Allison <jra@samba.org>1998-09-18 00:30:28 +0000
commit6dfbe2fa1a1d6eb5de05c8f5516c891abe7bdb74 (patch)
tree36f08d2ca82bde805af9f9f00bbbe591a0191eca /source3/include
parent1e17cbd2a3db061c8638ee8566ded53d14878bca (diff)
downloadsamba-6dfbe2fa1a1d6eb5de05c8f5516c891abe7bdb74.tar.gz
samba-6dfbe2fa1a1d6eb5de05c8f5516c891abe7bdb74.tar.bz2
samba-6dfbe2fa1a1d6eb5de05c8f5516c891abe7bdb74.zip
include/includes.h:
lib/system.c: Can't assume every system has a statvfs varient. Return -1 for those that don't. smbd/reply.c: Fixed printf warning. Jeremy. (This used to be commit 14c134e8316687aa5a4ee089c2acfa6428faceae)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 788e4485ab..69b629f07c 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -376,13 +376,18 @@
/*
* Type for statvfs structure.
+ * Unfortunately, due to the make proto structure
+ * we still need to define this as void * for platforms
+ * that don't have either statvfs or statvfs64. JRA.
*/
#ifndef SMB_STRUCT_STATVFS
# if defined(STAT_STATVFS64)
# define SMB_STRUCT_STATVFS struct statvfs64
-# else
+# elif defined(STAT_STATVFS)
# define SMB_STRUCT_STATVFS struct statvfs
+# else
+# define SMB_STRUCT_STATVFS void *
# endif
#endif