net-analyzer/net-snmp: Fix includes (bug #628952).
authorJeroen Roovers <jer@gentoo.org>
Sun, 27 Aug 2017 11:03:28 +0000 (13:03 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sun, 27 Aug 2017 11:03:56 +0000 (13:03 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

net-analyzer/net-snmp/files/net-snmp-5.7.3-mariadb-10.2.patch

index 8660a325756029ed8de42cac80423909dbf165dd..dea1a0178531af282d686cf428c47a2688b028c6 100644 (file)
      /** 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)
+