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