The attached patch fixes the MinGW build. Thanks Robert! I realize that
MinGW may not be a show stopper to most, so we can hold off or commit.
Has the rc been cut yet?
Andy
diff -Naur net-snmp/agent/mibgroup/mibII/interfaces.h net-snmp-mingw32/agent/mibgroup/mibII/interfaces.h
--- net-snmp/agent/mibgroup/mibII/interfaces.h 2004-10-16 20:53:43.000000000 -0500
+++ net-snmp-mingw32/agent/mibgroup/mibII/interfaces.h 2004-10-29 19:28:54.484264353 -0500
@@ -6,7 +6,9 @@
#define _MIBGROUP_INTERFACES_H
config_require(util_funcs)
+#ifdef WIN32
config_require(if-mib/data_access/interface)
+#endif
config_arch_require(solaris2, kernel_sunos5)
/*
* need get_address in var_route for some platforms (USE_SYSCTL_IFLIST).
diff -Naur net-snmp/configure.in net-snmp-mingw32/configure.in
--- net-snmp/configure.in 2004-10-26 07:37:44.000000000 -0500
+++ net-snmp-mingw32/configure.in 2004-10-29 19:29:08.174603523 -0500
@@ -1737,7 +1737,8 @@
AC_MSG_RESULT([$new_module_list.])
AC_MSG_CACHE_ADD(Agent MIB code: $new_module_list)
-MODULECPP="$CPP -I${srcdir}/include -I${srcdir}/agent/mibgroup"
+MODULECPP="$CPP -D$PARTIALTARGETOS -I${srcdir}/include -I${srcdir}/agent/mibgroup"
+
if test "x$enable_mfd_rewrites" = "xyes"; then
MODULECPP="$MODULECPP -DNETSNMP_ENABLE_MFD_REWRITES"
fi