1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

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

This commit is contained in:
Dirk Meyer 2024-01-21 16:06:25 +01:00
parent 2f364c65c9
commit e54574be59

View File

@ -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