File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / ntpsnmpd / ntp_snmp.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 1 month ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    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_VERSION
   30: # undef PACKAGE_VERSION
   31: #endif
   32: 
   33: #include <ntpSnmpSubagentObject.h>
   34: #include <config.h>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>