On Jun 28 22:02, Kai Tietz wrote:
> 2012/6/28 Corinna Vinschen <vinsc...@redhat.com>:
> > On Jun 28 21:47, Kai Tietz wrote:
> >> 2012/6/28 Corinna Vinschen <vinsc...@redhat.com>:
> >> > Hi,
> >> >
> >> > the below patch skips the definition of struct in6_addr and the
> >> > definitions concerning struct sockaddr_storage when building Cygwin.
> >> >
> >> >
> >> > Thanks,
> >> > Corinna
> >>
> >> Hmm, type in6_addr is required by ras.h and by ipexport.h, ws2ipdef.h,
> >> and ws2tcpip.h header.
> >> I am not sure if it is wise to simply not define it at this place.
> >
> > It's only undefined whern building Cygwin itself, not for Cygwin
> > applications using the windows headers.  The reason is that the
> > definition clashes with our own POSIX definitions.
> >
> >
> > Corinna
> 
> Ok, so wouldn't it be a good point to include exactly here in this
> case cygwin/in6.h header?

The problem is that Cygwin creates the POSIX API using the Winsock API.
That requires to include both headers in the same files in a couple of
cases, and the __INSIDE_CYGWIN__ are used to make sure we don't have
type collisions where Windows uses POSIX datatype names.

So, are you proposing to include cygwin/in6.h from in6addr.h or
winsock2.h?  What would be the advantage?  You'd still need to guard
these includes with __INSIDE_CYGWIN__ and you'd still have to disable
the winsock2.h definitions the same way.

> Anyway that's you business ... so patch is ok.

Thanks.  I'll apply it tomorrow, unless you'd like to discuss this more.
I admit that the usage of __INSIDE_CYGWIN__ in the winsock headers looks
a bit random sometimes, but please keep in mind that this has grown
historically.  We only ever diabled what collided and left everything
else intact as far as possible.


Corinna

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

Reply via email to