Skip to content

Commit

Permalink
Merge pull request #1 from makandra/tk/0.3.x-lts-ubuntu22
Browse files Browse the repository at this point in the history
Only do version check in Windows environment
  • Loading branch information
kratob authored Jul 29, 2022
2 parents c920d41 + c23ef72 commit adc8816
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/mysql2/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,7 @@ static VALUE initialize_ext(VALUE self) {
}

void init_mysql2_client() {
#ifdef _WIN32
/* verify the libmysql we're about to use was the version we were built against
https://github.com/luislavena/mysql-gem/commit/a600a9c459597da0712f70f43736e24b484f8a99 */
int i;
Expand All @@ -1227,6 +1228,7 @@ void init_mysql2_client() {
return;
}
}
#endif

/* Initializing mysql library, so different threads could call Client.new */
/* without race condition in the library */
Expand Down

0 comments on commit adc8816

Please sign in to comment.