summaryrefslogtreecommitdiff
path: root/dist/sqlite3.c
diff options
context:
space:
mode:
authorVictor Chang <vfcc@google.com>2019-03-20 13:42:51 -0700
committerVictor Chang <vfcc@google.com>2019-03-20 13:42:51 -0700
commit28e33ea37bac45f54e24e38b4543c92f480f7bb3 (patch)
treefd0bc74fe63ee15347f7362816bc8d8fde257ca4 /dist/sqlite3.c
parentaaea07a420e93518c351c48ee54000609f6d8be1 (diff)
[fuchsia] Add Fuchsia support to SQLite.
This enables basic database locking, but there are known weaknesses to this approach. ie. If the process is killed before the *.lock file can be deleted, then the database is perpetually locked. Bug: 120103808 Test: Database locking works. Change-Id: Iac54c5f76e167fef15b490522840d33808d4bc6c
Diffstat (limited to 'dist/sqlite3.c')
-rw-r--r--dist/sqlite3.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dist/sqlite3.c b/dist/sqlite3.c
index bcaaf16..35d1051 100644
--- a/dist/sqlite3.c
+++ b/dist/sqlite3.c
@@ -38450,6 +38450,10 @@ SQLITE_API int sqlite3_os_init(void){
UNIXVFS("unix", autolockIoFinder ),
#elif OS_VXWORKS
UNIXVFS("unix", vxworksIoFinder ),
+#elif __Fuchsia__
+ /* None of the system calls for other exclusion methods are currently
+ ** implemented on Fuchsia, so use simple dot-file locking for now. */
+ UNIXVFS("unix", dotlockIoFinder ),
#else
UNIXVFS("unix", posixIoFinder ),
#endif