With the latest Cygwin version <winsock2.h> must be included before <iphlpapi.h>. However, <winsock2.h> is incompatible with the Cygwin socket header files. Hence disable the mibII MIBs that depend on <iphlpapi.h> if <iphlpapi.h> needs <winsock2.h>. --- agent/mibgroup/mibII.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/agent/mibgroup/mibII.h b/agent/mibgroup/mibII.h index 679a2bb..9cfa56a 100644 --- a/agent/mibgroup/mibII.h +++ b/agent/mibgroup/mibII.h @@ -4,15 +4,17 @@ config_require(mibII/system_mib) config_require(mibII/sysORTable) +config_require(mibII/snmp_mib) +config_require(mibII/vacm_vars) +config_require(mibII/setSerialNo) +#if !defined(cygwin) || defined(HAVE_IPHLPAPI_H) config_require(mibII/at) config_require(mibII/ifTable) config_require(mibII/ip) -config_require(mibII/snmp_mib) config_require(mibII/tcp) config_require(mibII/icmp) config_require(mibII/udp) -config_require(mibII/vacm_vars) -config_require(mibII/setSerialNo) +#endif /* mibII/ipv6 is activated via --enable-ipv6 and only builds on Linux+*BSD */ #if defined(NETSNMP_ENABLE_IPV6) && (defined(linux) || defined(freebsd3) || defined(netbsd1) || defined(openbsd4)) -- 2.1.2 ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders