net-analyzer/cacti-spine: Fix building against dev-db/mysql-connector-c-8*

Fixes: https://bugs.gentoo.org/692656
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
This commit is contained in:
Jeroen Roovers
2019-08-22 12:50:38 +02:00
parent d9fc493248
commit cff8321fce
2 changed files with 12 additions and 0 deletions
@@ -30,6 +30,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-0.8.8d-ping.patch
"${FILESDIR}"/${PN}-0.8.8g-net-snmp.patch
"${FILESDIR}"/${PN}-1.2.5-my_bool.patch
)
src_prepare() {
@@ -0,0 +1,11 @@
--- a/sql.c
+++ b/sql.c
@@ -229,7 +229,7 @@ void db_connect(int type, MYSQL *mysql) {
timeout = 5;
rtimeout = 10;
wtimeout = 20;
- my_bool reconnect = 1;
+ _Bool reconnect = 1;
mysql_init(mysql);