1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

mail/opensmtpd-extras: Fix building with MySQL 8.0.1

Obtained from:	OpenSMTPd repo
MFH:		2020Q1
This commit is contained in:
Dima Panov 2020-01-24 09:26:31 +00:00
parent 064154b690
commit 0a05e8b0a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=523958

View File

@ -0,0 +1,25 @@
From 6d424d2b10b8f8b04197d1edc686d61cdf5154db Mon Sep 17 00:00:00 2001
From: Reio Remma <reio@mrstuudio.ee>
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;