diff options
author | drh <drh@noemail.net> | 2009-01-15 04:30:02 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2009-01-15 04:30:02 +0000 |
commit | c7288ee0b857b3462ed0ef8ae64558172352bb3e (patch) | |
tree | 16e7036718bb8d0f9eef778089e21e46c0d6860e /src/os_unix.c | |
parent | a81c64a2da4369f097c6628494a4ba50788b5b2a (diff) | |
download | sqlite-c7288ee0b857b3462ed0ef8ae64558172352bb3e.tar.gz sqlite-c7288ee0b857b3462ed0ef8ae64558172352bb3e.zip |
Avoid using ENOTSUP on systems that do not define that symbol.
Ticket #3512. (CVS 6182)
FossilOrigin-Name: fcb6c677124102558f7a7a22bc3569b664424a4c
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 177b7994d..b7e6f35da 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.236 2009/01/14 23:03:41 drh Exp $ +** $Id: os_unix.c,v 1.237 2009/01/15 04:30:03 drh Exp $ */ #include "sqliteInt.h" #if SQLITE_OS_UNIX /* This file is used on unix only */ @@ -2878,9 +2878,11 @@ static int full_fsync(int fd, int fullSync, int dataOnly){ #else if( dataOnly ){ rc = fdatasync(fd); - if( OS_VXWORKS && rc==-1 && errno==ENOTSUP ){ +#if OS_VXWORKS + if( rc==-1 && errno==ENOTSUP ){ rc = fsync(fd); } +#endif }else{ rc = fsync(fd); } |