mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
sqlite: Fix build with DEBUG_LEVEL < 2
This commit is contained in:
parent
a9a2c040ba
commit
b158c210cd
@ -62,7 +62,9 @@ METHOD(plugin_t, destroy, void,
|
||||
plugin_t *sqlite_plugin_create()
|
||||
{
|
||||
private_sqlite_plugin_t *this;
|
||||
#if SQLITE_VERSION_NUMBER >= 3005000 && DEBUG_LEVEL >= 2
|
||||
int threadsafe = 0;
|
||||
#endif
|
||||
|
||||
INIT(this,
|
||||
.public = {
|
||||
@ -74,7 +76,7 @@ plugin_t *sqlite_plugin_create()
|
||||
},
|
||||
);
|
||||
|
||||
#if SQLITE_VERSION_NUMBER >= 3005000
|
||||
#if SQLITE_VERSION_NUMBER >= 3005000 && DEBUG_LEVEL >= 2
|
||||
threadsafe = sqlite3_threadsafe();
|
||||
#endif
|
||||
DBG2(DBG_LIB, "using SQLite %s, thread safety %d",
|
||||
|
Loading…
x
Reference in New Issue
Block a user