From: Jean Baptiste Favre Date: Thu, 26 Sep 2024 13:41:35 +0000 (+0300) Subject: Fix build issue with MySQL 8 X-Git-Tag: archive/raspbian/8.1.11+ds-0+deb11u1+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5cb25f2db58331be4f97fd71e2a372d11a3f4f2e;p=trafficserver.git Fix build issue with MySQL 8 Origin: other, https://bugs.launchpad.net/ubuntu/+source/trafficserver/+bug/1795362 Forwarded: https://github.com/apache/trafficserver/pull/4360 Applied-Upstream: https://github.com/apache/trafficserver/commit/05b30527974416768515506f69da338652c23260 Reviewed-by: Jean Baptiste Favre Last-Update: 2018-10-06 The my_bool type is no longer used in MySQL source code. Any third-party code that used this type to represent C boolean variables should use the bool or int C type instead. Last-Update: 2018-10-06 Gbp-Pq: Name 0009-fix-mysql-8-build.patch --- diff --git a/plugins/experimental/mysql_remap/mysql_remap.cc b/plugins/experimental/mysql_remap/mysql_remap.cc index 5f165985..6d31ecd7 100644 --- a/plugins/experimental/mysql_remap/mysql_remap.cc +++ b/plugins/experimental/mysql_remap/mysql_remap.cc @@ -187,7 +187,7 @@ TSPluginInit(int argc, const char *argv[]) my_data *data = (my_data *)malloc(1 * sizeof(my_data)); TSPluginRegistrationInfo info; - my_bool reconnect = 1; + bool reconnect = 1; info.plugin_name = const_cast(PLUGIN_NAME); info.vendor_name = const_cast("Apache Software Foundation");