blob: 255cd403806884c881fce4fd33e5ce13d4c8f5d9 [file] [log] [blame]
From 5bc429a1b8206673c2ab4bf1046c1fad65ffcfc5 Mon Sep 17 00:00:00 2001
From: Scott Graham <scottmg@chromium.org>
Date: Mon, 11 Sep 2017 13:37:46 -0700
Subject: [PATCH 10/10] fuchsia: Use dot-file locking for sqlite
---
third_party/sqlite/src/src/os_unix.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/third_party/sqlite/src/src/os_unix.c b/third_party/sqlite/src/src/os_unix.c
index 74c2e08cd1ba..e2ae7e5525ec 100644
--- a/third_party/sqlite/src/src/os_unix.c
+++ b/third_party/sqlite/src/src/os_unix.c
@@ -7740,6 +7740,10 @@ 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
--
2.14.0.