diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-08-27 13:03:28 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-08-27 13:03:56 +0200 |
commit | b3fb887ce0d860d20eaf5eddb37ed206d782c155 (patch) | |
tree | c5518da05b5df4777e283f4071e0788279bd08c0 /net-analyzer/net-snmp | |
parent | dev-db/postgis: remove unused patch. (diff) | |
download | gentoo-b3fb887ce0d860d20eaf5eddb37ed206d782c155.tar.gz gentoo-b3fb887ce0d860d20eaf5eddb37ed206d782c155.tar.bz2 gentoo-b3fb887ce0d860d20eaf5eddb37ed206d782c155.zip |
net-analyzer/net-snmp: Fix includes (bug #628952).
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'net-analyzer/net-snmp')
-rw-r--r-- | net-analyzer/net-snmp/files/net-snmp-5.7.3-mariadb-10.2.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.7.3-mariadb-10.2.patch b/net-analyzer/net-snmp/files/net-snmp-5.7.3-mariadb-10.2.patch index 8660a3257560..dea1a0178531 100644 --- a/net-analyzer/net-snmp/files/net-snmp-5.7.3-mariadb-10.2.patch +++ b/net-analyzer/net-snmp/files/net-snmp-5.7.3-mariadb-10.2.patch @@ -35,3 +35,22 @@ /** try to connect; we'll try again later if we fail */ (void) netsnmp_mysql_connect(); +--- a/apps/snmptrapd_sql.c ++++ b/apps/snmptrapd_sql.c +@@ -50,11 +50,16 @@ + #undef PACKAGE_STRING + #undef PACKAGE_TARNAME + #undef PACKAGE_VERSION ++#ifdef HAVE_BROKEN_LIBMYSQLCLIENT ++#include <mysql.h> ++#include <errmsg.h> ++#else + #include <my_global.h> + #include <my_sys.h> + #include <mysql.h> + #include <errmsg.h> + #include <mysql_version.h> ++#endif + + netsnmp_feature_require(container_fifo) + |