diff options
author | Björn Jacke <bj@sernet.de> | 2009-12-04 23:26:47 +0100 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2009-12-04 23:29:56 +0100 |
commit | 3264a98ff16de899d11ef37b98a7d7a7c763fe22 (patch) | |
tree | 6a9429c89af375793e05485c1751adb8ebf0c954 /source3/lib | |
parent | 32915ceefc718621e2e9b17fee97da82744ab67a (diff) | |
download | samba-3264a98ff16de899d11ef37b98a7d7a7c763fe22.tar.gz samba-3264a98ff16de899d11ef37b98a7d7a7c763fe22.tar.bz2 samba-3264a98ff16de899d11ef37b98a7d7a7c763fe22.zip |
s3: check if glibc has broken posix_fallocate
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index b18358d8b2..905beed9ff 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -612,7 +612,7 @@ int sys_lstat(const char *fname,SMB_STRUCT_STAT *sbuf, /******************************************************************* An posix_fallocate() wrapper that will deal with 64 bit filesizes. ********************************************************************/ -#if defined(HAVE_POSIX_FALLOCATE64) || defined(HAVE_POSIX_FALLOCATE) +#if (defined(HAVE_POSIX_FALLOCATE64) || defined(HAVE_POSIX_FALLOCATE)) && !defined(HAVE_BROKEN_POSIX_FALLOCATE) int sys_posix_fallocate(int fd, SMB_OFF_T offset, SMB_OFF_T len) { #if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_OFF64_T) && defined(HAVE_POSIX_FALLOCATE64) |