From d3c8474bc2754e5618adc10c590be100feb327b0 Mon Sep 17 00:00:00 2001 From: Dima Panov Date: Fri, 24 Jan 2020 10:46:44 +0000 Subject: [PATCH] MFH: r523958 mail/opensmtpd-extras: Fix building with MySQL 8.0.1 Obtained from: OpenSMTPd repo Approved by: ports-secteam (miwi) --- mail/opensmtpd-extras/files/patch-git6d424d2 | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 mail/opensmtpd-extras/files/patch-git6d424d2 diff --git a/mail/opensmtpd-extras/files/patch-git6d424d2 b/mail/opensmtpd-extras/files/patch-git6d424d2 new file mode 100644 index 000000000000..f25f587564fa --- /dev/null +++ b/mail/opensmtpd-extras/files/patch-git6d424d2 @@ -0,0 +1,25 @@ +From 6d424d2b10b8f8b04197d1edc686d61cdf5154db Mon Sep 17 00:00:00 2001 +From: Reio Remma +Date: Thu, 19 Dec 2019 18:55:30 +0200 +Subject: [PATCH] Fix building with MySQL 8.0.1. + +--- + extras/tables/table-mysql/table_mysql.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git ./extras/tables/table-mysql/table_mysql.c ./extras/tables/table-mysql/table_mysql.c +index a58fdf1..257a713 100644 +--- ./extras/tables/table-mysql/table_mysql.c ++++ ./extras/tables/table-mysql/table_mysql.c +@@ -243,7 +243,11 @@ config_connect(struct config *conf) + { "query_addrname", 1 }, + { "query_mailaddrmap", 1 }, + }; ++#if MYSQL_VERSION_ID >= 80001 ++ bool reconn; ++#else + my_bool reconn; ++#endif + size_t i; + char *host, *username, *password, *database, *q; +