From: Luigi Rizzo Date: Fri, 5 Sep 2014 06:28:55 +0000 (+0200) Subject: cygwin on 64 bit defines __CYGWIN__ and not __CYGWIN32__ X-Git-Url: http://git.onelab.eu/?p=ipfw-google.git;a=commitdiff_plain;h=97b3568163e49f7ead162881cba07d06b6f693c6 cygwin on 64 bit defines __CYGWIN__ and not __CYGWIN32__ Also strcasecmp is not in the kernel --- diff --git a/binary64/ipfw.exe b/binary64/ipfw.exe index 35c86d9..8daf4eb 100755 Binary files a/binary64/ipfw.exe and b/binary64/ipfw.exe differ diff --git a/binary64/ipfw.sys b/binary64/ipfw.sys index 8e2275d..3ca96e8 100755 Binary files a/binary64/ipfw.sys and b/binary64/ipfw.sys differ diff --git a/glue.h b/glue.h index 75216cc..1fb029c 100644 --- a/glue.h +++ b/glue.h @@ -51,9 +51,11 @@ #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 @@ -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 *