aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2011-08-25 13:46:32 +0000
committerdan <dan@noemail.net>2011-08-25 13:46:32 +0000
commitee140c4d711e88de0d20350403f20bc248f451c9 (patch)
tree3f3aedc45798eb8844c07222eea94c50efb36cb6 /src/os_unix.c
parent26541c9a00024af94e837019abf0b6108d4da37a (diff)
downloadsqlite-ee140c4d711e88de0d20350403f20bc248f451c9.tar.gz
sqlite-ee140c4d711e88de0d20350403f20bc248f451c9.zip
Fix the SQLITE_DISABLE_DIRSYNC compile time option.
FossilOrigin-Name: 6deb3ea1f080324ea23ebdc9008753fbbc4063e2
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index a4193c948..868e029f8 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -252,7 +252,11 @@ struct unixFile {
#define UNIXFILE_EXCL 0x01 /* Connections from one process only */
#define UNIXFILE_RDONLY 0x02 /* Connection is read only */
#define UNIXFILE_PERSIST_WAL 0x04 /* Persistent WAL mode */
-#define UNIXFILE_DIRSYNC 0x08 /* Directory sync needed */
+#ifndef SQLITE_DISABLE_DIRSYNC
+# define UNIXFILE_DIRSYNC 0x08 /* Directory sync needed */
+#else
+# define UNIXFILE_DIRSYNC 0x00
+#endif
/*
** Include code that is common to all os_*.c files