File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,10 @@ VALUE rb_hash_dup(VALUE other) {
53
53
* variable to use, but MYSQL_SERVER_VERSION gives the correct numbers when
54
54
* linking against the server itself
55
55
*/
56
- #ifdef LIBMYSQL_VERSION
57
- #define MYSQL_LINK_VERSION LIBMYSQL_VERSION
56
+ #ifdef MARIADB_CLIENT_VERSION_STR
57
+ #define MYSQL_LINK_VERSION MARIADB_CLIENT_VERSION_STR
58
+ #elif LIBMYSQL_VERSION
59
+ #define MYSQL_LINK_VERSION MYSQL_VERSION_ID
58
60
#else
59
61
#define MYSQL_LINK_VERSION MYSQL_SERVER_VERSION
60
62
#endif
Original file line number Diff line number Diff line change @@ -11,10 +11,8 @@ void Init_mysql2(void);
11
11
12
12
#ifdef HAVE_MYSQL_H
13
13
#include <mysql.h>
14
- #include <mysql_com.h>
15
14
#include <errmsg.h>
16
15
#include <mysqld_error.h>
17
- #include <mysql_version.h>
18
16
#else
19
17
#include <mysql/mysql.h>
20
18
#include <mysql/mysql_com.h>
You can’t perform that action at this time.
0 commit comments