mirror of
https://github.com/coturn/coturn.git
synced 2025-10-28 13:31:16 +01:00
SQLite support for CentOS/RedHat 5
This commit is contained in:
parent
fcd75b1ba9
commit
6c2604620b
@ -97,6 +97,8 @@ static void sqlite_unlock(int write)
|
|||||||
|
|
||||||
static int sqlite_init_multithreaded(void) {
|
static int sqlite_init_multithreaded(void) {
|
||||||
|
|
||||||
|
#if defined(SQLITE_CONFIG_MULTITHREAD)
|
||||||
|
|
||||||
sqlite3_shutdown();
|
sqlite3_shutdown();
|
||||||
|
|
||||||
if (sqlite3_threadsafe() > 0) {
|
if (sqlite3_threadsafe() > 0) {
|
||||||
@ -112,6 +114,7 @@ static int sqlite_init_multithreaded(void) {
|
|||||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "Your SQLite database is not compiled to be threadsafe.\n");
|
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "Your SQLite database is not compiled to be threadsafe.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user