diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 4f61cd2ba..870b9f30f 100644 --- a/src/main.c +++ b/src/main.c @@ -14,7 +14,7 @@ ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** -** $Id: main.c,v 1.451 2008/06/19 00:16:08 drh Exp $ +** $Id: main.c,v 1.452 2008/06/19 01:03:18 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -76,7 +76,9 @@ int sqlite3_initialize(void){ if( sqlite3IsInit ) return SQLITE_OK; rc = sqlite3MutexInit(); if( rc==SQLITE_OK ){ +#ifndef SQLITE_MUTEX_NOOP sqlite3_mutex *pMutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER); +#endif sqlite3_mutex_enter(pMutex); if( sqlite3IsInit==0 ){ sqlite3IsInit = 1; |