cygwin on 64 bit defines __CYGWIN__ and not __CYGWIN32__
authorLuigi Rizzo <rizzo@iet.unipi.it>
Fri, 5 Sep 2014 06:28:55 +0000 (08:28 +0200)
committerLuigi Rizzo <rizzo@iet.unipi.it>
Fri, 5 Sep 2014 06:28:55 +0000 (08:28 +0200)
Also strcasecmp is not in the kernel

binary64/ipfw.exe
binary64/ipfw.sys
glue.h

index 35c86d9..8daf4eb 100755 (executable)
Binary files a/binary64/ipfw.exe and b/binary64/ipfw.exe differ
index 8e2275d..3ca96e8 100755 (executable)
Binary files a/binary64/ipfw.sys and b/binary64/ipfw.sys differ
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 *