summaryrefslogtreecommitdiff
path: root/databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb')
-rw-r--r--databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb b/databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb
index 945358044a3f..5a81b1eb5fb3 100644
--- a/databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb
+++ b/databases/rubygem-mysql/files/patch-ext-mysql_api-extconf.rb
@@ -4,7 +4,7 @@
next unless l =~ /errmsg\.h|mysqld_error\.h/
fn = l.split(/\"/)[1]
IO.foreach(fn) do |m|
-+ next if m == 'ER_UNKNOWN_ERROR_CODE'
++ next if m =~ /ER_UNKNOWN_ERROR_CODE/
+
if m =~ /^#define\s+([CE]R_[0-9A-Z_]+)/ then
error_syms << $1