Skip to content

Commit f60600d

Browse files
committed
fix for issue brianmario#878
1 parent 9c2d277 commit f60600d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/mysql2/client.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ VALUE rb_hash_dup(VALUE other) {
5353
* variable to use, but MYSQL_SERVER_VERSION gives the correct numbers when
5454
* linking against the server itself
5555
*/
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
5860
#else
5961
#define MYSQL_LINK_VERSION MYSQL_SERVER_VERSION
6062
#endif

ext/mysql2/mysql2_ext.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ void Init_mysql2(void);
1111

1212
#ifdef HAVE_MYSQL_H
1313
#include <mysql.h>
14-
#include <mysql_com.h>
1514
#include <errmsg.h>
1615
#include <mysqld_error.h>
17-
#include <mysql_version.h>
1816
#else
1917
#include <mysql/mysql.h>
2018
#include <mysql/mysql_com.h>

0 commit comments

Comments
 (0)