net-snmp/net-snmp-5.6.1-mysql.patch

15 lines
537 B
Diff

MySQL 5.5 does not export 'const char *my_progname', so MY_INIT cannot be used.
diff -up net-snmp-5.6.1/apps/snmptrapd_sql.c.orig net-snmp-5.6.1/apps/snmptrapd_sql.c
--- net-snmp-5.6.1/apps/snmptrapd_sql.c.orig 2010-11-30 22:08:59.000000000 +0100
+++ net-snmp-5.6.1/apps/snmptrapd_sql.c 2011-02-15 13:01:31.631486477 +0100
@@ -434,7 +434,7 @@ netsnmp_mysql_init(void)
return -1;
}
- MY_INIT("snmptrapd");
+ my_init();
/** load .my.cnf values */
load_defaults ("my", _sql.groups, &not_argc, &not_argv);