databases/rubygem-mysql: fix build with mariadb 10.11 and ruby 3.2

This commit is contained in:
Dirk Meyer
2024-01-21 16:08:05 +01:00
parent 2f364c65c9
commit e54574be59
@@ -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