diff options
author | Reio Remma <reio@mrstuudio.ee> | 2019-12-19 18:55:30 +0200 |
---|---|---|
committer | Reio Remma <reio@mrstuudio.ee> | 2019-12-19 18:55:30 +0200 |
commit | 6d424d2b10b8f8b04197d1edc686d61cdf5154db (patch) | |
tree | 6b80377276e72712c7dba8e3fc956f9ab779c445 | |
parent | Merge pull request #61 from fgma/mysql-update (diff) | |
download | OpenSMTPD-extras-6d424d2b10b8f8b04197d1edc686d61cdf5154db.tar.xz OpenSMTPD-extras-6d424d2b10b8f8b04197d1edc686d61cdf5154db.zip |
Fix building with MySQL 8.0.1.
-rw-r--r-- | extras/tables/table-mysql/table_mysql.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/tables/table-mysql/table_mysql.c b/extras/tables/table-mysql/table_mysql.c index a58fdf1..257a713 100644 --- a/extras/tables/table-mysql/table_mysql.c +++ b/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; |