Hi, the below patch skips the definition of struct in6_addr and the definitions concerning struct sockaddr_storage when building Cygwin.
Thanks, Corinna * in6addr.h (struct in6_addr): Don't define when building Cygwin. * winsock2.h (struct sockaddr_storage): Ditto, including helper macros. Index: in6addr.h =================================================================== --- in6addr.h (revision 5153) +++ in6addr.h (working copy) @@ -8,6 +8,8 @@ #include <_bsd_types.h> +#ifndef __INSIDE_CYGWIN__ + typedef struct in6_addr { union { u_char Byte[16]; @@ -24,5 +26,7 @@ #define s6_bytes u.Byte #define s6_words u.Word +#endif /* !__INSIDE_CYGWIN__ */ + #endif /* s6_addr */ Index: winsock2.h =================================================================== --- winsock2.h (revision 5153) +++ winsock2.h (working copy) @@ -245,6 +245,8 @@ #define AF_BTH 32 #define AF_MAX 33 +#ifndef __INSIDE_CYGWIN__ + #define _SS_MAXSIZE 128 #define _SS_ALIGNSIZE (8) @@ -259,6 +261,8 @@ char __ss_pad2[_SS_PAD2SIZE]; }; +#endif /* !__INSIDE_CYGWIN__ */ + #define PF_UNSPEC AF_UNSPEC #define PF_UNIX AF_UNIX #define PF_INET AF_INET ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public