diff options
Diffstat (limited to 'src/os_os2.c')
-rw-r--r-- | src/os_os2.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/os_os2.c b/src/os_os2.c index 0a3b1434a..56a8092c6 100644 --- a/src/os_os2.c +++ b/src/os_os2.c @@ -12,7 +12,7 @@ ** ** This file contains code that is specific to OS/2. ** -** $Id: os_os2.c,v 1.58 2008/11/07 00:06:18 drh Exp $ +** $Id: os_os2.c,v 1.59 2008/11/18 23:03:40 pweilbacher Exp $ */ #include "sqliteInt.h" @@ -196,7 +196,14 @@ static int os2Sync( sqlite3_file *id, int flags ){ } sqlite3_sync_count++; #endif + /* If we compiled with the SQLITE_NO_SYNC flag, then syncing is a + ** no-op + */ +#ifdef SQLITE_NO_SYNC + return SQLITE_OK; +#else return DosResetBuffer( pFile->h ) == NO_ERROR ? SQLITE_OK : SQLITE_IOERR; +#endif } /* |