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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user