diff options
author | drh <drh@noemail.net> | 2011-04-11 18:35:09 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-04-11 18:35:09 +0000 |
commit | a6c47493ee544aa43342e75c137ab71f1c1bf1b2 (patch) | |
tree | 9aa0269b54110f1ae3c880a7f710e98bc3ceede4 /src/os_unix.c | |
parent | c6e4172a126ddf5e39744639bd5a18b521fb01cf (diff) | |
download | sqlite-a6c47493ee544aa43342e75c137ab71f1c1bf1b2.tar.gz sqlite-a6c47493ee544aa43342e75c137ab71f1c1bf1b2.zip |
Do not override the fchmod system call in unix unless the
SQLITE_ENABLE_LOCKING_STYLE compile-time option is engaged.
FossilOrigin-Name: 51029d8430d2dbc782f161577d47e3dd11c4e4d7
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index e3fa9ea46..f0e8258f1 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -363,8 +363,10 @@ static struct unix_syscall { #define osPwrite64 ((ssize_t(*)(int,const void*,size_t,off_t))\ aSyscall[13].pCurrent) +#if SQLITE_ENABLE_LOCKING_STYLE { "fchmod", (sqlite3_syscall_ptr)fchmod, 0 }, #define osFchmod ((int(*)(int,mode_t))aSyscall[14].pCurrent) +#endif #if defined(HAVE_POSIX_FALLOCATE) && HAVE_POSIX_FALLOCATE { "fallocate", (sqlite3_syscall_ptr)posix_fallocate, 0 }, |