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