1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Make unix builds threadsafe by default. (CVS 3787)

FossilOrigin-Name: ddfc3b2df0b37be66fc55bb216cdcb6ba67aa7fd
This commit is contained in:
drh
2007-04-01 18:46:19 +00:00
parent 19df335841
commit 2c547df6cf
3 changed files with 11 additions and 8 deletions

View File

@@ -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