|
|
d071366 |
diff --git a/addons/cdr_mysql.c b/addons/cdr_mysql.c
|
|
|
d071366 |
index 00c75dd..bc405bb 100644
|
|
|
d071366 |
--- a/addons/cdr_mysql.c
|
|
|
d071366 |
+++ b/addons/cdr_mysql.c
|
|
|
d071366 |
@@ -43,6 +43,7 @@
|
|
|
d071366 |
#include "asterisk.h"
|
|
|
d071366 |
|
|
|
d071366 |
#include <mysql/mysql.h>
|
|
|
d071366 |
+#include <mysql/mariadb_version.h>
|
|
|
d071366 |
#include <mysql/errmsg.h>
|
|
|
d071366 |
|
|
|
d071366 |
#include "asterisk/config.h"
|
|
|
d071366 |
@@ -501,7 +502,7 @@ static int my_load_module(int reload)
|
|
|
d071366 |
res |= my_load_config_string(cfg, "global", "ssl_cert", &ssl_cert, "");
|
|
|
d071366 |
res |= my_load_config_string(cfg, "global", "ssl_key", &ssl_key, "");
|
|
|
d071366 |
|
|
|
d071366 |
- res |= my_load_config_number(cfg, "global", "port", &dbport, MYSQL_PORT);
|
|
|
d071366 |
+ res |= my_load_config_number(cfg, "global", "port", &dbport, MARIADB_PORT);
|
|
|
d071366 |
res |= my_load_config_number(cfg, "global", "timeout", &timeout, 0);
|
|
|
d071366 |
res |= my_load_config_string(cfg, "global", "compat", &compat, "no");
|
|
|
d071366 |
res |= my_load_config_string(cfg, "global", "cdrzone", &cdrzone, "");
|
|
Jared K. Smith |
6599b2e |
diff --git a/addons/res_config_mysql.c b/addons/res_config_mysql.c
|
|
|
d071366 |
index ae43485..94d3b35 100644
|
|
Jared K. Smith |
6599b2e |
--- a/addons/res_config_mysql.c
|
|
Jared K. Smith |
6599b2e |
+++ b/addons/res_config_mysql.c
|
|
|
d071366 |
@@ -33,6 +33,7 @@
|
|
Jared K. Smith |
6599b2e |
#include <sys/stat.h>
|
|
Jared K. Smith |
6599b2e |
|
|
Jared K. Smith |
6599b2e |
#include <mysql/mysql.h>
|
|
Jared K. Smith |
6599b2e |
+#include <mysql/mariadb_version.h>
|
|
Jared K. Smith |
6599b2e |
#include <mysql/errmsg.h>
|
|
Jared K. Smith |
6599b2e |
|
|
Jared K. Smith |
6599b2e |
#include "asterisk/channel.h"
|