diff options
author | drh <drh@noemail.net> | 2009-03-21 14:56:52 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2009-03-21 14:56:52 +0000 |
commit | 4a7384a25f9b747c13488fb9864983ae3258e499 (patch) | |
tree | 23088052d8be57d4dc0d501834906113284ee23d /src/os_unix.c | |
parent | 0b647ffd47e88535189427e655ec1667578a397b (diff) | |
download | sqlite-4a7384a25f9b747c13488fb9864983ae3258e499.tar.gz sqlite-4a7384a25f9b747c13488fb9864983ae3258e499.zip |
Rig the unix backend to use fdatasync() by default, without having to set the
HAVE_FDATASYNC macro. Systems that do not support fdatasync() can be compiled
using -Dfdatasync=fsync. (CVS 6368)
FossilOrigin-Name: a331562727be465874a66c2c1d15ee070f96f7e0
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index ec781a556..01ca657b7 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -43,7 +43,7 @@ ** * Definitions of sqlite3_vfs objects for all locking methods ** plus implementations of sqlite3_os_init() and sqlite3_os_end(). ** -** $Id: os_unix.c,v 1.243 2009/03/21 14:41:04 drh Exp $ +** $Id: os_unix.c,v 1.244 2009/03/21 14:56:52 drh Exp $ */ #include "sqliteInt.h" #if SQLITE_OS_UNIX /* This file is used on unix only */ @@ -2824,10 +2824,10 @@ int sqlite3_fullsync_count = 0; #endif /* -** Use the fdatasync() API only if the HAVE_FDATASYNC macro is defined. -** Otherwise use fsync() in its place. +** We assume that most systems these days support fdatasync(). Those +** machines that do not can define -Dfdatasync=fsync. */ -#ifndef HAVE_FDATASYNC +#if 0 # define fdatasync fsync #endif |