File: snmptrapd_correct_mysql_includes

package info (click to toggle)
net-snmp 5.9.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 38,720 kB
  • sloc: ansic: 282,878; perl: 17,704; sh: 12,151; makefile: 2,711; python: 734; xml: 663; pascal: 62; sql: 47
file content (23 lines) | stat: -rw-r--r-- 519 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Correct snmptrapd MariaDB includes
 Do not include my_sys.h
Author: Craig Small <csmall@debian.org>
Reviewed-by: Craig Small <csmall@debian.org
Last-Update: 2023-08-19
---
--- a/apps/snmptrapd_sql.c
+++ b/apps/snmptrapd_sql.c
@@ -23,14 +23,6 @@
 #undef PACKAGE_STRING
 #undef PACKAGE_TARNAME
 #undef PACKAGE_VERSION
-#if !defined(HAVE_MYSQL_INIT)
-#ifdef HAVE_MY_GLOBAL_H
-#include <my_global.h>
-#endif
-#ifdef HAVE_MY_SYS_H
-#include <my_sys.h>
-#endif
-#endif
 #include <mysql.h>
 #include <errmsg.h>