aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2013-08-24 01:12:03 +0000
committermistachkin <mistachkin@noemail.net>2013-08-24 01:12:03 +0000
commitb5ca3cbcd3fe39a55f6b22ddea3c026c355d3102 (patch)
treefe33d5f0e14c62be89d8382a434adc4cca92fdf8 /src/os_unix.c
parente98844f723bc932426691a685645bba5a811e088 (diff)
downloadsqlite-b5ca3cbcd3fe39a55f6b22ddea3c026c355d3102.tar.gz
sqlite-b5ca3cbcd3fe39a55f6b22ddea3c026c355d3102.zip
Fix a couple compilation issues on Unix.
FossilOrigin-Name: 25b029d8f32440a94ef8af45153423f6702d7431
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 339bae703..0ae88517e 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4810,6 +4810,7 @@ static int unixUnfetch(sqlite3_file *fd, i64 iOff, void *p){
unixFile *pFd = (unixFile *)fd; /* The underlying database file */
UNUSED_PARAMETER(iOff);
+#if SQLITE_MAX_MMAP_SIZE>0
/* If p==0 (unmap the entire file) then there must be no outstanding
** xFetch references. Or, if p!=0 (meaning it is an xFetch reference),
** then there must be at least one outstanding. */
@@ -4825,6 +4826,7 @@ static int unixUnfetch(sqlite3_file *fd, i64 iOff, void *p){
}
assert( pFd->nFetchOut>=0 );
+#endif
return SQLITE_OK;
}
@@ -5156,7 +5158,9 @@ static int fillInUnixFile(
pNew->pVfs = pVfs;
pNew->zPath = zFilename;
pNew->ctrlFlags = (u8)ctrlFlags;
+#if SQLITE_MAX_MMAP_SIZE>0
pNew->mmapSizeMax = sqlite3GlobalConfig.szMmap;
+#endif
if( sqlite3_uri_boolean(((ctrlFlags & UNIXFILE_URI) ? zFilename : 0),
"psow", SQLITE_POWERSAFE_OVERWRITE) ){
pNew->ctrlFlags |= UNIXFILE_PSOW;