net-analyzer/barnyard2: Fix building against dev-db/mysql-connector-c-8*
authorJeroen Roovers <jer@gentoo.org>
Tue, 20 Aug 2019 08:29:21 +0000 (10:29 +0200)
committerJeroen Roovers <jer@gentoo.org>
Tue, 20 Aug 2019 08:30:12 +0000 (10:30 +0200)
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/barnyard2/barnyard2-1.13.ebuild
net-analyzer/barnyard2/files/barnyard2-1.13-my_bool.patch [new file with mode: 0644]

index 7214129d7ec1cbe78adf7805fe05e2e5051e1e4b..64f00cbb8a96c9b55e66dd0d6976f5c49c67870e 100644 (file)
@@ -28,6 +28,7 @@ S="${WORKDIR}/${PN}-2-${PV}"
 PATCHES=(
        "${FILESDIR}"/${PN}-1.13-free.patch
        "${FILESDIR}"/${PN}-1.13-libdir.patch
+       "${FILESDIR}"/${PN}-1.13-my_bool.patch
        "${FILESDIR}"/${PN}-1.13-odbc.patch
        "${FILESDIR}"/${PN}-1.13-pcap-1.9.0.patch
 )
diff --git a/net-analyzer/barnyard2/files/barnyard2-1.13-my_bool.patch b/net-analyzer/barnyard2/files/barnyard2-1.13-my_bool.patch
new file mode 100644 (file)
index 0000000..9cd9322
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/output-plugins/spo_database.h
++++ b/src/output-plugins/spo_database.h
+@@ -357,7 +357,7 @@
+     /* Herited from shared data globals */
+     unsigned long pThreadID; /* Used to store thread information and know if we "reconnected automaticaly" */
+-    my_bool mysql_reconnect; /* We will handle it via the api. */
++    u_int8_t mysql_reconnect; /* We will handle it via the api. */
+ #endif /* ENABLE_MYSQL */
+ #ifdef ENABLE_POSTGRESQL