/ Check-in [ddfc3b2d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make unix builds threadsafe by default. (CVS 3787)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ddfc3b2df0b37be66fc55bb216cdcb6ba67aa7fd
User & Date: drh 2007-04-01 18:46:19
Context
2007-04-01
23:49
Fix some warnings about unused and uninitialized variables. (CVS 3788) check-in: 18aec1dd user: drh tags: trunk
18:46
Make unix builds threadsafe by default. (CVS 3787) check-in: ddfc3b2d user: drh tags: trunk
01:57
Fix typos in the amalgamation builder script. (CVS 3786) check-in: a5070a2d user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

    55     55   #include <sys/mount.h>
    56     56   #endif /* SQLITE_ENABLE_LOCKING_STYLE */
    57     57   
    58     58   /*
    59     59   ** If we are to be thread-safe, include the pthreads header and define
    60     60   ** the SQLITE_UNIX_THREADS macro.
    61     61   */
    62         -#if defined(THREADSAFE) && THREADSAFE
           62  +#ifndef THREADSAFE
           63  +# define THREADSAFE 1
           64  +#endif
           65  +#if THREADSAFE
    63     66   # include <pthread.h>
    64     67   # define SQLITE_UNIX_THREADS 1
    65     68   #endif
    66     69   
    67     70   /*
    68     71   ** Default permissions when creating a new file
    69     72   */