Fossil SCM

Port included SQLite to MorphOS using ixemul

js 2025-05-26 21:09 morphos
Commit b9998eb62537165e8b1429d08820f819d05e6b3f8f942f030e22e11cf45f27a1
1 file changed +6 -2
--- extsrc/sqlite3.c
+++ extsrc/sqlite3.c
@@ -41286,11 +41286,11 @@
4128641286
** still works when you do this, but concurrency is reduced since
4128741287
** only a single process can be reading the database at a time.
4128841288
**
4128941289
** Omit this section if SQLITE_ENABLE_LOCKING_STYLE is turned off
4129041290
*/
41291
-#if SQLITE_ENABLE_LOCKING_STYLE
41291
+#if SQLITE_ENABLE_LOCKING_STYLE || defined(__ixemul__)
4129241292
4129341293
/*
4129441294
** Retry flock() calls that fail with EINTR
4129541295
*/
4129641296
#ifdef EINTR
@@ -44438,11 +44438,11 @@
4443844438
dotlockUnlock, /* xUnlock method */
4443944439
dotlockCheckReservedLock, /* xCheckReservedLock method */
4444044440
0 /* xShmMap method */
4444144441
)
4444244442
44443
-#if SQLITE_ENABLE_LOCKING_STYLE
44443
+#if SQLITE_ENABLE_LOCKING_STYLE || defined(__ixemul__)
4444444444
IOMETHODS(
4444544445
flockIoFinder, /* Finder function name */
4444644446
flockIoMethods, /* sqlite3_io_methods object name */
4444744447
1, /* shared memory is disabled */
4444844448
flockClose, /* xClose method */
@@ -47042,10 +47042,14 @@
4704247042
static sqlite3_vfs aVfs[] = {
4704347043
#if SQLITE_ENABLE_LOCKING_STYLE && defined(__APPLE__)
4704447044
UNIXVFS("unix", autolockIoFinder ),
4704547045
#elif OS_VXWORKS
4704647046
UNIXVFS("unix", vxworksIoFinder ),
47047
+#elif defined(__ixemul__)
47048
+ UNIXVFS("unix", flockIoFinder ),
47049
+ UNIXVFS("unix-flock", flockIoFinder ),
47050
+ UNIXVFS("unix-posix", flockIoFinder ),
4704747051
#else
4704847052
UNIXVFS("unix", posixIoFinder ),
4704947053
#endif
4705047054
UNIXVFS("unix-none", nolockIoFinder ),
4705147055
UNIXVFS("unix-dotfile", dotlockIoFinder ),
4705247056
--- extsrc/sqlite3.c
+++ extsrc/sqlite3.c
@@ -41286,11 +41286,11 @@
41286 ** still works when you do this, but concurrency is reduced since
41287 ** only a single process can be reading the database at a time.
41288 **
41289 ** Omit this section if SQLITE_ENABLE_LOCKING_STYLE is turned off
41290 */
41291 #if SQLITE_ENABLE_LOCKING_STYLE
41292
41293 /*
41294 ** Retry flock() calls that fail with EINTR
41295 */
41296 #ifdef EINTR
@@ -44438,11 +44438,11 @@
44438 dotlockUnlock, /* xUnlock method */
44439 dotlockCheckReservedLock, /* xCheckReservedLock method */
44440 0 /* xShmMap method */
44441 )
44442
44443 #if SQLITE_ENABLE_LOCKING_STYLE
44444 IOMETHODS(
44445 flockIoFinder, /* Finder function name */
44446 flockIoMethods, /* sqlite3_io_methods object name */
44447 1, /* shared memory is disabled */
44448 flockClose, /* xClose method */
@@ -47042,10 +47042,14 @@
47042 static sqlite3_vfs aVfs[] = {
47043 #if SQLITE_ENABLE_LOCKING_STYLE && defined(__APPLE__)
47044 UNIXVFS("unix", autolockIoFinder ),
47045 #elif OS_VXWORKS
47046 UNIXVFS("unix", vxworksIoFinder ),
 
 
 
 
47047 #else
47048 UNIXVFS("unix", posixIoFinder ),
47049 #endif
47050 UNIXVFS("unix-none", nolockIoFinder ),
47051 UNIXVFS("unix-dotfile", dotlockIoFinder ),
47052
--- extsrc/sqlite3.c
+++ extsrc/sqlite3.c
@@ -41286,11 +41286,11 @@
41286 ** still works when you do this, but concurrency is reduced since
41287 ** only a single process can be reading the database at a time.
41288 **
41289 ** Omit this section if SQLITE_ENABLE_LOCKING_STYLE is turned off
41290 */
41291 #if SQLITE_ENABLE_LOCKING_STYLE || defined(__ixemul__)
41292
41293 /*
41294 ** Retry flock() calls that fail with EINTR
41295 */
41296 #ifdef EINTR
@@ -44438,11 +44438,11 @@
44438 dotlockUnlock, /* xUnlock method */
44439 dotlockCheckReservedLock, /* xCheckReservedLock method */
44440 0 /* xShmMap method */
44441 )
44442
44443 #if SQLITE_ENABLE_LOCKING_STYLE || defined(__ixemul__)
44444 IOMETHODS(
44445 flockIoFinder, /* Finder function name */
44446 flockIoMethods, /* sqlite3_io_methods object name */
44447 1, /* shared memory is disabled */
44448 flockClose, /* xClose method */
@@ -47042,10 +47042,14 @@
47042 static sqlite3_vfs aVfs[] = {
47043 #if SQLITE_ENABLE_LOCKING_STYLE && defined(__APPLE__)
47044 UNIXVFS("unix", autolockIoFinder ),
47045 #elif OS_VXWORKS
47046 UNIXVFS("unix", vxworksIoFinder ),
47047 #elif defined(__ixemul__)
47048 UNIXVFS("unix", flockIoFinder ),
47049 UNIXVFS("unix-flock", flockIoFinder ),
47050 UNIXVFS("unix-posix", flockIoFinder ),
47051 #else
47052 UNIXVFS("unix", posixIoFinder ),
47053 #endif
47054 UNIXVFS("unix-none", nolockIoFinder ),
47055 UNIXVFS("unix-dotfile", dotlockIoFinder ),
47056

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button