X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=glue.h;h=1fb029c6d65ad483c128c983287d0db38a799608;hb=a6a16b4403951d0108724160ba7b9593f77e4aaa;hp=75216cc44be4eeffd8668dd9d7592aaedd036f99;hpb=8e87ee720bdedbc75ae87923fa1032af0d62d5fe;p=ipfw-google.git 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 *