aboutsummaryrefslogtreecommitdiff
path: root/src/test_config.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-11-29 02:20:26 +0000
committerdrh <drh@noemail.net>2008-11-29 02:20:26 +0000
commit9b35ea62c7ca2cc86a38ffdae9693cf384f67c2e (patch)
tree348a16e57f51637da02f3949a40b177b4574dff3 /src/test_config.c
parent7708e9720b48b807d51e1b5d6906276834110b8a (diff)
downloadsqlite-9b35ea62c7ca2cc86a38ffdae9693cf384f67c2e.tar.gz
sqlite-9b35ea62c7ca2cc86a38ffdae9693cf384f67c2e.zip
Continuing to refactor os_unix.c. This is an incremental check-in. (CVS 5967)
FossilOrigin-Name: c13df0311ef4f6a510f42105293f7c53c323fda8
Diffstat (limited to 'src/test_config.c')
-rw-r--r--src/test_config.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/test_config.c b/src/test_config.c
index 067191fd9..d6662f671 100644
--- a/src/test_config.c
+++ b/src/test_config.c
@@ -16,7 +16,7 @@
** The focus of this file is providing the TCL testing layer
** access to compile-time constants.
**
-** $Id: test_config.c,v 1.44 2008/11/29 00:56:54 drh Exp $
+** $Id: test_config.c,v 1.45 2008/11/29 02:20:27 drh Exp $
*/
#include "sqliteLimit.h"
@@ -392,7 +392,14 @@ Tcl_SetVar2(interp, "sqlite_options", "long_double",
Tcl_SetVar2(interp, "sqlite_options", "schema_version", "1", TCL_GLOBAL_ONLY);
#endif
-#if defined(SQLITE_ENABLE_LOCKING_STYLE) && defined(__DARWIN__)
+#if !defined(SQLITE_ENABLE_LOCKING_STYLE)
+# if defined(__DARWIN__)
+# define SQLITE_ENABLE_LOCKING_STYLE 1
+# else
+# define SQLITE_ENABLE_LOCKING_STYLE 0
+# endif
+#endif
+#if SQLITE_ENABLE_LOCKING_STYLE && defined(__DARWIN__)
Tcl_SetVar2(interp,"sqlite_options","lock_proxy_pragmas","1",TCL_GLOBAL_ONLY);
#else
Tcl_SetVar2(interp,"sqlite_options","lock_proxy_pragmas","0",TCL_GLOBAL_ONLY);