1 /* $NetBSD: ntp_snmp.h,v 1.6 2020/05/25 20:47:26 christos Exp $ */ 2 3 /* 4 * ntp_snmp.h -- common net-snmp header includes and workaround 5 * for Autoconf-related PACKAGE_* redefinitions between 6 * net-snmp and NTP. 7 * 8 * Currently ntpsnmpd *.c files are exceptions to the rule that every .c 9 * file should include <config.h> before any other headers. It would be 10 * ideal to rearrange its includes so that our config.h is first, but 11 * that is complicated by the redefinitions between our config.h and 12 * net-snmp/net-snmp-config.h. 13 */ 14 15 #include <net-snmp/net-snmp-config.h> 16 #include <net-snmp/net-snmp-includes.h> 17 #include <net-snmp/agent/net-snmp-agent-includes.h> 18 19 #ifdef PACKAGE_BUGREPORT 20 # undef PACKAGE_BUGREPORT 21 #endif 22 #ifdef PACKAGE_NAME 23 # undef PACKAGE_NAME 24 #endif 25 #ifdef PACKAGE_STRING 26 # undef PACKAGE_STRING 27 #endif 28 #ifdef PACKAGE_TARNAME 29 # undef PACKAGE_TARNAME 30 #endif 31 #ifdef PACKAGE_URL 32 # undef PACKAGE_URL 33 #endif 34 #ifdef PACKAGE_VERSION 35 # undef PACKAGE_VERSION 36 #endif 37 38 #include <ntpSnmpSubagentObject.h> 39 #include <config.h> 40