Alex Burger wrote:

Can you send me a patch so I can test it with MSVC? If it works with MSVC and MinGW and it fixes Cygwin then I see no reason not to apply your changes.
Attached

BTW, when did you install Cygwin?


Monday or Tuesday this week....

Dave

Index: configure
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/configure,v
retrieving revision 5.189.2.8
diff -u -r5.189.2.8 configure
--- configure	12 Jun 2006 23:40:04 -0000	5.189.2.8
+++ configure	30 Jun 2006 15:21:27 -0000
@@ -13548,7 +13548,7 @@
    default_mibs=IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:SNMPv2-MIB:RFC1213-MIB:NOTIFICATION-LOG-MIB:DISMAN-EVENT-MIB:DISMAN-SCHEDULE-MIB
 
    case $target_os in
-      linux* | mingw32* | cygwin* | freebsd* | dynix* | solaris2* | hpux* )
+      linux* | freebsd* | dynix* | solaris2* | hpux* )
          new_module_list="$new_module_list host"
          ;;
       *)
Index: apps/snmpnetstat/inet6.c
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/apps/snmpnetstat/inet6.c,v
retrieving revision 5.14.2.2
diff -u -r5.14.2.2 inet6.c
--- apps/snmpnetstat/inet6.c	12 Jun 2006 20:23:32 -0000	5.14.2.2
+++ apps/snmpnetstat/inet6.c	30 Jun 2006 15:20:26 -0000
@@ -42,36 +42,20 @@
 
 #include <net-snmp/net-snmp-config.h>
 
-/*
- * hack-o-matic for Cygwin to use winsock2
-*/
-#if defined(cygwin)
-#undef HAVE_UNISTD_H
-#undef HAVE_NETINET_IN_H
-#undef HAVE_ARPA_INET_H
-#undef HAVE_SYS_PARAM_H
-#undef HAVE_SYS_SELECT_H
-#undef HAVE_SYS_SOCKET_H
-#undef HAVE_IN_ADDR_T
+#if HAVE_UNISTD_H
+#include <unistd.h>
 #endif
-
-#if defined(HAVE_WINSOCK_H) || defined(cygwin)
+#if HAVE_WINSOCK_H
 #include <winsock2.h>
 #include <ws2tcpip.h>
 #include "winstub.h"
-
-extern const char *inet_ntop(int, const void*, char*, size_t);
-
-#ifdef cygwin
-extern int WSAAPI getnameinfo(const struct sockaddr*,socklen_t,char*,DWORD, char*,DWORD,int);
 #endif
-
-#else                  /* WIN32 */
+#if HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 #if HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#endif                  /* WIN32 */
-
 #if HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
@@ -85,10 +69,6 @@
 
 #include <net-snmp/net-snmp-includes.h>
 
-#if HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
 #include "main.h"
 #include "netstat.h"
 
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to