Skip to content

Commit

Permalink
fix for issue brianmario#878
Browse files Browse the repository at this point in the history
  • Loading branch information
actsasflinn committed Sep 9, 2017
1 parent 9c2d277 commit f60600d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions ext/mysql2/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ VALUE rb_hash_dup(VALUE other) {
* variable to use, but MYSQL_SERVER_VERSION gives the correct numbers when
* linking against the server itself
*/
#ifdef LIBMYSQL_VERSION
#define MYSQL_LINK_VERSION LIBMYSQL_VERSION
#ifdef MARIADB_CLIENT_VERSION_STR
#define MYSQL_LINK_VERSION MARIADB_CLIENT_VERSION_STR
#elif LIBMYSQL_VERSION
#define MYSQL_LINK_VERSION MYSQL_VERSION_ID
#else
#define MYSQL_LINK_VERSION MYSQL_SERVER_VERSION
#endif
Expand Down
2 changes: 0 additions & 2 deletions ext/mysql2/mysql2_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ void Init_mysql2(void);

#ifdef HAVE_MYSQL_H
#include <mysql.h>
#include <mysql_com.h>
#include <errmsg.h>
#include <mysqld_error.h>
#include <mysql_version.h>
#else
#include <mysql/mysql.h>
#include <mysql/mysql_com.h>
Expand Down

0 comments on commit f60600d

Please sign in to comment.