aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteLimit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sqliteLimit.h')
-rw-r--r--src/sqliteLimit.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/sqliteLimit.h b/src/sqliteLimit.h
index 826d19dd9..2b02cc566 100644
--- a/src/sqliteLimit.h
+++ b/src/sqliteLimit.h
@@ -219,13 +219,9 @@
#ifndef SQLITE_DEFAULT_MMAP_LIMIT
# if defined(__linux__) \
|| defined(_WIN32) \
- || (defined(__APPLE__) && defined(__MACH__) && !defined(TARGET_OS_IPHONE)) \
- || defined(__sun) \
- || defined(__DragonFly__) \
- || defined(__FreeBSD__) \
- || defined(__NetBSD__) \
- || defined(__OpenBSD__)
-# define SQLITE_DEFAULT_MMAP_LIMIT (256*1024*1024)
+ || (defined(__APPLE__) && defined(__MACH__)) \
+ || defined(__sun)
+# define SQLITE_DEFAULT_MMAP_LIMIT 268435456 /* = 256*1024*1024 */
# else
# define SQLITE_DEFAULT_MMAP_LIMIT 0
# endif