summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/sqlite3/sqlite3.c
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/sqlite3/sqlite3.c')
-rw-r--r--3rdparty/sqlite3/sqlite3.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/3rdparty/sqlite3/sqlite3.c b/3rdparty/sqlite3/sqlite3.c
index 33fb95c96a9..eee15296b9d 100644
--- a/3rdparty/sqlite3/sqlite3.c
+++ b/3rdparty/sqlite3/sqlite3.c
@@ -8706,11 +8706,15 @@ SQLITE_PRIVATE const int sqlite3one;
/*
** Disable MMAP on platforms where it is known to not work
*/
-#if defined(__OpenBSD__) || defined(__QNXNTO__)
+#if defined(__OpenBSD__) || defined(__QNXNTO__) || defined(__OS2__)
# undef SQLITE_MAX_MMAP_SIZE
# define SQLITE_MAX_MMAP_SIZE 0
#endif
+#ifdef __OS2__
+# define SQLITE_OMIT_WAL
+#endif
+
/*
** Default maximum size of memory used by memory-mapped I/O in the VFS
*/