summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Feldman <NP-Hardass@gentoo.org>2020-07-07 11:05:53 -0400
committerAdam Feldman <NP-Hardass@gentoo.org>2020-08-06 23:17:24 -0400
commitbe405622188b0d2ae4c0bd877b8f9ff74c6e6281 (patch)
tree7fcfdeae1538b74fd34ff1d98d98b2fa3c82cb1b /mail-filter/dspam/files
parentdev-lang/go: Stabilize 1.14.7 ppc64, #736156 (diff)
downloadgentoo-be405622188b0d2ae4c0bd877b8f9ff74c6e6281.tar.gz
gentoo-be405622188b0d2ae4c0bd877b8f9ff74c6e6281.tar.bz2
gentoo-be405622188b0d2ae4c0bd877b8f9ff74c6e6281.zip
mail-filter/dspam: add mysql-8 compatibility
Bug: https://bugs.gentoo.org/692436 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Adam Feldman <NP-Hardass@gentoo.org>
Diffstat (limited to 'mail-filter/dspam/files')
-rw-r--r--mail-filter/dspam/files/dspam-3.10.2-mysql8-my_bool-typedef.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail-filter/dspam/files/dspam-3.10.2-mysql8-my_bool-typedef.patch b/mail-filter/dspam/files/dspam-3.10.2-mysql8-my_bool-typedef.patch
new file mode 100644
index 000000000000..8edafbdf0dab
--- /dev/null
+++ b/mail-filter/dspam/files/dspam-3.10.2-mysql8-my_bool-typedef.patch
@@ -0,0 +1,13 @@
+--- a/src/mysql_drv.c 2020-07-07 10:40:33.871152228 -0400
++++ b/src/mysql_drv.c 2020-07-07 10:43:16.187818893 -0400
+@@ -35,6 +35,10 @@
+ #include <fcntl.h>
+ #include <signal.h>
+ #include <mysql.h>
++#if defined(LIBMYSQL_VERSION_ID) && (LIBMYSQL_VERSION_ID >= 80000)
++ typedef bool my_bool;
++#endif
++
+ #include <limits.h>
+
+ /* Work around broken limits.h on debian etch (and possibly others?) */