cygwin on 64 bit defines __CYGWIN__ and not __CYGWIN32__
[ipfw-google.git] / glue.h
diff --git a/glue.h b/glue.h
index 75216cc..1fb029c 100644 (file)
--- a/glue.h
+++ b/glue.h
 
 #ifndef KERNEL_MODULE  /* Userland headers */
 
-#if defined(__CYGWIN32__) && !defined(_WIN32)                                   
+#if defined(__CYGWIN32__) || defined(__CYGWIN__)
+#if !defined(_WIN32)                                   
 #define _WIN32                                                                  
 #endif                                                                          
+#endif                                                                          
 
 #if defined(TCC) && defined(_WIN32)
 #include <tcc_glue.h>
@@ -245,7 +247,7 @@ enum ipfw_msg_type {
 /* on freebsd sys/socket.h pf specific */
 #define NET_RT_IFLIST  3               /* survey interface list */
 
-#if defined(__linux__) || defined(__CYGWIN32__)
+#if defined(__linux__) || defined(__CYGWIN32__) || defined(__CYGWIN__)
 /* on freebsd net/if.h XXX used */
 struct if_data {
        /* ... */
@@ -467,6 +469,7 @@ struct ether_addr * ether_aton(const char *a);
 
 struct hostent* gethostbyname2(const char *name, int af);
 
+#define strcasecmp strcmp // windows XXX ip_dummynet.c
 
 /********************
 * windows wrappings *