Skip to content

Commit

Permalink
Merge pull request #902 from sodabrew/remove_mysqld_error_h
Browse files Browse the repository at this point in the history
Include mysqld_error.h has been here for ages but was superfluous
  • Loading branch information
sodabrew authored Nov 12, 2017
2 parents beac69a + 8a82466 commit 763235e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis_mysql51.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eux
apt-get purge -qq '^mysql*' '^libmysql*'
rm -fr /etc/mysql
rm -fr /var/lib/mysql
apt-key adv --keyserver keys.gnupg.net --recv-keys 8507EFA5
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 9334A25F8507EFA5
add-apt-repository 'deb http://repo.percona.com/apt precise main'
apt-get update -qq
apt-get install -qq percona-server-server-5.1 percona-server-client-5.1 libmysqlclient16-dev
4 changes: 2 additions & 2 deletions ext/mysql2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def add_ssl_defines(header)
asplode 'mysql.h'
end

%w(errmsg.h mysqld_error.h).each do |h|
header = [prefix, h].compact.join '/'
%w(errmsg.h).each do |h|
header = [prefix, h].compact.join('/')
asplode h unless have_header header
end

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 @@ -12,11 +12,9 @@ void Init_mysql2(void);
#ifdef HAVE_MYSQL_H
#include <mysql.h>
#include <errmsg.h>
#include <mysqld_error.h>
#else
#include <mysql/mysql.h>
#include <mysql/errmsg.h>
#include <mysql/mysqld_error.h>
#endif

#ifdef HAVE_RUBY_ENCODING_H
Expand Down

0 comments on commit 763235e

Please sign in to comment.