aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-01-10 18:02:45 +0000
committerdrh <drh@noemail.net>2015-01-10 18:02:45 +0000
commitf7a4a1b8c58f511b4dca992f9a314775a1c3aca0 (patch)
tree0bb47238073303b268297806d2acec80778b4f7d /src/os_unix.c
parent0ede9ebec71f6d7f7c1427d59c2c4705e7182251 (diff)
downloadsqlite-f7a4a1b8c58f511b4dca992f9a314775a1c3aca0.tar.gz
sqlite-f7a4a1b8c58f511b4dca992f9a314775a1c3aca0.zip
Make use of the fdatasync() interface if the HAVE_FDATASYNC macro is true.
FossilOrigin-Name: 694228e4632c2999efa47ecb49f679c177db02e5
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 3fcb0cff2..ddd6a802e 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3386,9 +3386,9 @@ int sqlite3_fullsync_count = 0;
** We do not trust systems to provide a working fdatasync(). Some do.
** Others do no. To be safe, we will stick with the (slightly slower)
** fsync(). If you know that your system does support fdatasync() correctly,
-** then simply compile with -Dfdatasync=fdatasync
+** then simply compile with -Dfdatasync=fdatasync or -DHAVE_FDATASYNC
*/
-#if !defined(fdatasync)
+#if !defined(fdatasync) && !HAVE_FDATASYNC
# define fdatasync fsync
#endif