Hi,

Cygwin performs a couple of 32 bit operations within in6_addr.  The below
patch adds matching Linux-like members *only* when building CYgwin itself.

Ok to apply?


Thanks,
Corinna


        * in6addr.h (struct in6addr): Add u.__s6_addr32 member when
        building Cygwin.
        (s6_addr32): Define when building Cygwin.


Index: in6addr.h
===================================================================
--- in6addr.h   (revision 5167)
+++ in6addr.h   (working copy)
@@ -12,6 +12,9 @@
   union {
     u_char Byte[16];
     u_short Word[8];
+#ifdef __INSIDE_CYGWIN__
+    uint32_t __s6_addr32[4];
+#endif
   } u;
 } IN6_ADDR, *PIN6_ADDR, *LPIN6_ADDR;
 
@@ -24,5 +27,9 @@
 #define s6_bytes       u.Byte
 #define s6_words       u.Word
 
+#ifdef __INSIDE_CYGWIN__
+#define s6_addr32       u.__s6_addr32
+#endif
+
 #endif /* s6_addr */
 

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to