Build: Fix compile issues with seldom used modules

The following modules needed tweaks for API changes.

addons/cdr_mysql.c
addons/chan_ooh323.c
apps/app_meetme.c

ASTERISK-28604

Change-Id: Ib40e513ae55b5114be035cdc929abb6a8ce2d06d
This commit is contained in:
George Joseph
2019-10-29 07:23:54 -06:00
parent eea2d499f4
commit 36b28c98dd
3 changed files with 8 additions and 9 deletions

View File

@@ -173,7 +173,9 @@ static int mysql_log(struct ast_cdr *cdr)
{
struct ast_str *sql1 = ast_str_thread_get(&sql1_buf, 1024), *sql2 = ast_str_thread_get(&sql2_buf, 1024);
int retries = 5;
#if MYSQL_VERSION_ID >= 50013
#if MYSQL_VERSION_ID >= 80001
bool my_bool_true = 1;
#elif MYSQL_VERSION_ID >= 50013
my_bool my_bool_true = 1;
#endif
@@ -468,7 +470,9 @@ static int my_connect_db(struct ast_config *cfg)
MYSQL_ROW row;
MYSQL_RES *result;
char sqldesc[128];
#if MYSQL_VERSION_ID >= 50013
#if MYSQL_VERSION_ID >= 80001
bool my_bool_true = 1;
#elif MYSQL_VERSION_ID >= 50013
my_bool my_bool_true = 1;
#endif