1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Avoid using ENOTSUP on systems that do not define that symbol.

Ticket #3512. (CVS 6182)

FossilOrigin-Name: fcb6c677124102558f7a7a22bc3569b664424a4c
This commit is contained in:
drh
2009-01-15 04:30:02 +00:00
parent a81c64a2da
commit c7288ee0b8
3 changed files with 11 additions and 9 deletions

View File

@@ -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);
}