aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <>2022-08-12 18:46:01 +0000
committerdrh <>2022-08-12 18:46:01 +0000
commit087f143f87928dfd3aadc2d09464905028ee5deb (patch)
treeb976176a003d5969e8bbce21dac3a9b123c93a72 /src/os_unix.c
parent5b0e63eb4c58a9ceb5c6d0d817ab34e75b02c001 (diff)
downloadsqlite-087f143f87928dfd3aadc2d09464905028ee5deb.tar.gz
sqlite-087f143f87928dfd3aadc2d09464905028ee5deb.zip
Add the (undocumented) SQLITE_DEFAULT_UNIX_VFS compile-time option.
FossilOrigin-Name: 49828bdec5f926cd18a069d39a5db0b1e1f3528a2affcfbaa1cf7b98aca51b3b
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index b933de376..f809eca9f 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -8049,7 +8049,12 @@ int sqlite3_os_init(void){
/* Register all VFSes defined in the aVfs[] array */
for(i=0; i<(sizeof(aVfs)/sizeof(sqlite3_vfs)); i++){
+#ifdef SQLITE_DEFAULT_UNIX_VFS
+ sqlite3_vfs_register(&aVfs[i],
+ 0==strcmp(aVfs[i].zName,SQLITE_DEFAULT_UNIX_VFS));
+#else
sqlite3_vfs_register(&aVfs[i], i==0);
+#endif
}
unixBigLock = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1);