[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d7120d9766: Fix build with old sqlite libraries
From: |
Po Lu |
Subject: |
master d7120d9766: Fix build with old sqlite libraries |
Date: |
Sun, 10 Jul 2022 03:24:04 -0400 (EDT) |
branch: master
commit d7120d97669f3a8640c487e76527c546970c8049
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix build with old sqlite libraries
* src/sqlite.c (Fsqlite_open): Don't use SQLITE_OPEN_FULLMUTEX
if not defined.
---
src/sqlite.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/sqlite.c b/src/sqlite.c
index 75a3b2ea32..54bfb7b6c6 100644
--- a/src/sqlite.c
+++ b/src/sqlite.c
@@ -246,8 +246,10 @@ If FILE is nil, an in-memory database will be opened
instead. */)
(Lisp_Object file)
{
Lisp_Object name;
- int flags = (SQLITE_OPEN_CREATE | SQLITE_OPEN_FULLMUTEX
- | SQLITE_OPEN_READWRITE);
+ int flags = (SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE);
+#ifdef SQLITE_OPEN_FULLMUTEX
+ flags |= SQLITE_OPEN_FULLMUTEX;
+#endif
#ifdef SQLITE_OPEN_URI
flags |= SQLITE_OPEN_URI;
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master d7120d9766: Fix build with old sqlite libraries,
Po Lu <=