This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Xos.h and sys/un.h conflict
On Fri, Aug 31, 2001 at 02:45:03AM +0900, AIDA Shinra wrote:
>The probrem is following part:
>********
>#if defined(ISC) || \
> (defined(linux) && !defined(__GLIBC__)) || \
> (defined(__QNX__) && !defined(UNIXCONN)) || \
> defined(__CYGWIN__)
>/*
> * Some OS's may not have this
> */
>
>#define X_NO_SYS_UN 1
>
>struct sockaddr_un {
> short sun_family;
> char sun_path[108];
>};
>#endif
>********
>Cygwin 1.3.2 already has struct sockaddr_un in sys/un.h,
>so it is redefined when both sys/un.h and Xos.h are included.
>This part is contained in both 4.1.0 and current CVS.
AFAICT, Cygwin has had this structure since August, 1999. I'm
not sure why this code is even there.
cgf