From: Jean Baptiste Favre Date: Thu, 29 Jun 2023 15:41:23 +0000 (+0100) Subject: Fix build issue with MySQL 8 X-Git-Tag: archive/raspbian/8.1.7-0+deb10u1+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=00ef96f23c549b73c83a4abd1c28b7167d24ba24;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");