Hi,

while working on the complex mix of Winsock and POSIX definitions in
Cygwin's network-related code, I figured that it's easier to do as
much using Winsock definitions.  So I changed the Cygwin headers instead
to drop lots of definitions when building Cygwin.  The side effect is
that we need the definition of struct sockaddr from winsock2.h now.
Patch below.  Ok to apply?


Thanks,
Corinna


        * psdk_inc/_ip_types.h (struct sockaddr): Define always.


Index: psdk_inc/_ip_types.h
===================================================================
--- psdk_inc/_ip_types.h        (revision 5167)
+++ psdk_inc/_ip_types.h        (working copy)
@@ -49,11 +49,6 @@
        short   p_proto;
 };
 
-struct sockaddr {
-       u_short sa_family;
-       char    sa_data[14];
-};
-
 struct sockproto {
        u_short sp_family;
        u_short sp_protocol;
@@ -66,6 +61,11 @@
 
 #endif /* !__INSIDE_CYGWIN__ */
 
+struct sockaddr {
+       u_short sa_family;
+       char    sa_data[14];
+};
+
 struct sockaddr_in {
        short   sin_family;
        u_short sin_port;

------------------------------------------------------------------------------
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