diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2014-12-02 09:01:21 +0000 |
---|---|---|
committer | <> | 2014-12-04 16:11:25 +0000 |
commit | bdab5265fcbf3f472545073a23f8999749a9f2b9 (patch) | |
tree | c6018dd03dea906f8f1fb5f105f05b71a7dc250a /ntpsnmpd/ntp_snmp.h | |
download | ntp-bdab5265fcbf3f472545073a23f8999749a9f2b9.tar.gz |
Imported from /home/lorry/working-area/delta_ntp/ntp-dev-4.2.7p482.tar.gz.ntp-dev-4.2.7p482
Diffstat (limited to 'ntpsnmpd/ntp_snmp.h')
-rw-r--r-- | ntpsnmpd/ntp_snmp.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ntpsnmpd/ntp_snmp.h b/ntpsnmpd/ntp_snmp.h new file mode 100644 index 0000000..1e0499d --- /dev/null +++ b/ntpsnmpd/ntp_snmp.h @@ -0,0 +1,34 @@ +/* + * ntp_snmp.h -- common net-snmp header includes and workaround + * for Autoconf-related PACKAGE_* redefinitions between + * net-snmp and NTP. + * + * Currently ntpsnmpd *.c files are exceptions to the rule that every .c + * file should include <config.h> before any other headers. It would be + * ideal to rearrange its includes so that our config.h is first, but + * that is complicated by the redefinitions between our config.h and + * net-snmp/net-snmp-config.h. + */ + +#include <net-snmp/net-snmp-config.h> +#include <net-snmp/net-snmp-includes.h> +#include <net-snmp/agent/net-snmp-agent-includes.h> + +#ifdef PACKAGE_BUGREPORT +# undef PACKAGE_BUGREPORT +#endif +#ifdef PACKAGE_NAME +# undef PACKAGE_NAME +#endif +#ifdef PACKAGE_STRING +# undef PACKAGE_STRING +#endif +#ifdef PACKAGE_TARNAME +# undef PACKAGE_TARNAME +#endif +#ifdef PACKAGE_VERSION +# undef PACKAGE_VERSION +#endif + +#include <ntpSnmpSubagentObject.h> +#include <config.h> |