diff options
author | stephan <stephan@noemail.net> | 2024-06-03 07:22:28 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-06-03 07:22:28 +0000 |
commit | e1b55a5af9d65aa33d6fcfb68e9a998bd2af0985 (patch) | |
tree | 322cac2325c6026fcede8b33840d967681fd8fad /src/os_unix.c | |
parent | 5ef9c899770b764a2760f3b35571c3ec8bba5e95 (diff) | |
download | sqlite-e1b55a5af9d65aa33d6fcfb68e9a998bd2af0985.tar.gz sqlite-e1b55a5af9d65aa33d6fcfb68e9a998bd2af0985.zip |
Modify three #if checks in os_unix.c to improve handling of SQLITE_OMIT_WAL on WASI builds. Based on the discussion in/around [forum:57e918431735128a|forum post 57e918431735128a].
FossilOrigin-Name: 296eeb26c816bc734530cf446922f25be970b901c884df1a98083502f0d1e9f5
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 9e7ba05d6..c61b19060 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3987,7 +3987,7 @@ static void unixModeBit(unixFile *pFile, unsigned char mask, int *pArg){ /* Forward declaration */ static int unixGetTempname(int nBuf, char *zBuf); -#ifndef SQLITE_OMIT_WAL +#if !defined(SQLITE_WASI) && !defined(SQLITE_OMIT_WAL) static int unixFcntlExternalReader(unixFile*, int*); #endif @@ -4114,7 +4114,7 @@ static int unixFileControl(sqlite3_file *id, int op, void *pArg){ #endif /* SQLITE_ENABLE_LOCKING_STYLE && defined(__APPLE__) */ case SQLITE_FCNTL_EXTERNAL_READER: { -#ifndef SQLITE_OMIT_WAL +#if !defined(SQLITE_WASI) && !defined(SQLITE_OMIT_WAL) return unixFcntlExternalReader((unixFile*)id, (int*)pArg); #else *(int*)pArg = 0; @@ -4287,7 +4287,7 @@ static int unixGetpagesize(void){ #endif /* !defined(SQLITE_OMIT_WAL) || SQLITE_MAX_MMAP_SIZE>0 */ -#ifndef SQLITE_OMIT_WAL +#if !defined(SQLITE_WASI) && !defined(SQLITE_OMIT_WAL) /* ** Object used to represent an shared memory buffer. |