aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-04-01 18:46:19 +0000
committerdrh <drh@noemail.net>2007-04-01 18:46:19 +0000
commit2c547df6cfca33f6cfefbcf3d5ed30d7b9f7da59 (patch)
tree394f05ba0773b1cc3b5358274468aa0324a99813 /src/os_unix.c
parent19df3358418b0100df883b3a7b762a50f60a4aa2 (diff)
downloadsqlite-2c547df6cfca33f6cfefbcf3d5ed30d7b9f7da59.tar.gz
sqlite-2c547df6cfca33f6cfefbcf3d5ed30d7b9f7da59.zip
Make unix builds threadsafe by default. (CVS 3787)
FossilOrigin-Name: ddfc3b2df0b37be66fc55bb216cdcb6ba67aa7fd
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index ee7300a24..dedb6b6b9 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -59,7 +59,10 @@
** If we are to be thread-safe, include the pthreads header and define
** the SQLITE_UNIX_THREADS macro.
*/
-#if defined(THREADSAFE) && THREADSAFE
+#ifndef THREADSAFE
+# define THREADSAFE 1
+#endif
+#if THREADSAFE
# include <pthread.h>
# define SQLITE_UNIX_THREADS 1
#endif