summaryrefslogtreecommitdiff
path: root/source3/smbd/statvfs.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-20 10:33:13 +0100
committerVolker Lendecke <vl@samba.org>2007-12-20 10:33:13 +0100
commit8804f5bdd7cbc0bc8166c7a4a9a09fbcb4402afd (patch)
treedee60ec9bf77aa9f1377beeae3fa5a75fd0c1a5d /source3/smbd/statvfs.c
parenta32329297dbce22617960d112d94b6a5d2989e1f (diff)
downloadsamba-8804f5bdd7cbc0bc8166c7a4a9a09fbcb4402afd.tar.gz
samba-8804f5bdd7cbc0bc8166c7a4a9a09fbcb4402afd.tar.bz2
samba-8804f5bdd7cbc0bc8166c7a4a9a09fbcb4402afd.zip
Attempt to fix the build
James, at least on my Linux system neither FILE_CASE_SENSITIVE_SEARCH nor FILE_CASE_PRESERVING_NAMES seem to be defined anywhere. Is it possible that this is a MacOS/X specific thing? If so, could you add configure tests for this? Thanks, Volker (This used to be commit 465fd4385013c95f9778d710d70796feae4eb858)
Diffstat (limited to 'source3/smbd/statvfs.c')
-rw-r--r--source3/smbd/statvfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/statvfs.c b/source3/smbd/statvfs.c
index 5fc0afdd79..431489032c 100644
--- a/source3/smbd/statvfs.c
+++ b/source3/smbd/statvfs.c
@@ -39,11 +39,13 @@ static int linux_statvfs(const char *path, vfs_statvfs_struct *statbuf)
statbuf->FreeFileNodes = statvfs_buf.f_ffree;
statbuf->FsIdentifier = statvfs_buf.f_fsid;
+#if defined(FILE_CASE_SENSITIVE_SEARCH) && defined(FILE_CASE_PRESERVING_NAMES)
/* Good defaults for Linux filesystems are case sensitive
* and case preserving.
*/
statbuf->FsCapabilities =
FILE_CASE_SENSITIVE_SEARCH | FILE_CASE_PRESERVING_NAMES;
+#endif
}
return result;
}