aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2015-01-12 18:52:57 +0000
committermistachkin <mistachkin@noemail.net>2015-01-12 18:52:57 +0000
commit9b97b8fed970afe1edcae8b49281c072b92c93d0 (patch)
tree5e933832179cd56eb86c79d942f73df4d9c36dcc /src/os_unix.c
parent7bb6e8e16962d2201a5d61d5e02a52b4d453786c (diff)
parent8d9da63dacde128e546f84cb34392188aab1be83 (diff)
downloadsqlite-9b97b8fed970afe1edcae8b49281c072b92c93d0.tar.gz
sqlite-9b97b8fed970afe1edcae8b49281c072b92c93d0.zip
Merge updates from trunk.
FossilOrigin-Name: ca5f2c545216c82486e66d26f55b49cbf351ffdc
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