openbsd-ports/net/rtg/patches/patch-src_rtgsnmp_c
jca 500b81b3fc Stop referencing my_thread_init to unbreak build with recent mariadb releases
The code was already using mysql_thread_init() at runtime with
mysql>=4.0, this diff only removes references to an obsolete function.

ok sthen@
2019-05-10 21:13:28 +00:00

18 lines
440 B
Plaintext

$OpenBSD: patch-src_rtgsnmp_c,v 1.1 2019/05/10 21:13:28 jca Exp $
Index: src/rtgsnmp.c
--- src/rtgsnmp.c.orig
+++ src/rtgsnmp.c
@@ -46,10 +46,7 @@ void *poller(void *thread_args)
if (set.verbose >= HIGH)
printf("Thread [%d] starting.\n", worker->index);
- if (MYSQL_VERSION_ID > 40000)
- mysql_thread_init();
- else
- my_thread_init();
+ mysql_thread_init();
while (1) {
if (set.verbose >= DEVELOP)