mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-26 15:48:09 +00:00
fix compilation issues when sqlite storage is disabled
This commit is contained in:
parent
abe43db428
commit
a878da624f
2 changed files with 6 additions and 2 deletions
|
|
@ -284,7 +284,7 @@ static char* ConvertFromUtf8Filename(const char* fName){
|
|||
return bctbx_strdup(db_file_locale);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Opens the file fName and populates the structure pointed by p
|
||||
* with the necessary io_methods
|
||||
|
|
@ -452,3 +452,4 @@ void sqlite3_bctbx_vfs_unregister(void)
|
|||
sqlite3_vfs_unregister(pVfs);
|
||||
}
|
||||
|
||||
#endif /*SQLITE_STORAGE_ENABLED*/
|
||||
|
|
|
|||
|
|
@ -1505,9 +1505,12 @@ static void real_time_text(bool_t audio_stream_enabled, bool_t srtp_enabled, boo
|
|||
|
||||
if (sql_storage) {
|
||||
linphone_core_set_chat_database_path(marie->lc, marie_db);
|
||||
BC_ASSERT_PTR_NOT_NULL(marie->lc->db);
|
||||
linphone_core_set_chat_database_path(pauline->lc, pauline_db);
|
||||
#ifdef SQLITE_STORAGE_ENABLED
|
||||
BC_ASSERT_PTR_NOT_NULL(marie->lc->db);
|
||||
BC_ASSERT_PTR_NOT_NULL(pauline->lc->db);
|
||||
#endif
|
||||
|
||||
if (do_not_store_rtt_messages_in_sql_storage) {
|
||||
lp_config_set_int(marie->lc->config, "misc", "store_rtt_messages", 0);
|
||||
lp_config_set_int(pauline->lc->config, "misc", "store_rtt_messages", 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue