diff options
author | dan <dan@noemail.net> | 2010-05-01 16:40:20 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-05-01 16:40:20 +0000 |
commit | 5cf53537a8ec78f1f9b917e2f242ca1924057ddc (patch) | |
tree | 491728fa98fd33ae8e691871f95c0472c4128882 /src/os_unix.c | |
parent | 057f1ecddb5d0fa7aaebc8257a388b03a9744cbb (diff) | |
download | sqlite-5cf53537a8ec78f1f9b917e2f242ca1924057ddc.tar.gz sqlite-5cf53537a8ec78f1f9b917e2f242ca1924057ddc.zip |
Support compile-time option SQLITE_OMIT_WAL, for building without WAL support.
FossilOrigin-Name: 9b230c43dfa112e3e1589f9775926807bd36b36e
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index f37afa1f1..b2c22c365 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -4562,6 +4562,8 @@ static int unixGetLastError(sqlite3_vfs *NotUsed, int NotUsed2, char *NotUsed3){ return 0; } +#ifndef SQLITE_OMIT_WAL + /* Forward reference */ typedef struct unixShm unixShm; typedef struct unixShmFile unixShmFile; @@ -5334,6 +5336,15 @@ static int unixShmDelete(sqlite3_vfs *pVfs, const char *zName){ return pVfs->xDelete(pVfs, zName, 0); } +#else +# define unixShmOpen 0 +# define unixShmSize 0 +# define unixShmGet 0 +# define unixShmRelease 0 +# define unixShmLock 0 +# define unixShmClose 0 +# define unixShmDelete 0 +#endif /* #ifndef SQLITE_OMIT_WAL */ /* ************************ End of sqlite3_vfs methods *************************** |