Xos.h and sys/un.h conflict
Suhaib Siddiqi
ssiddiqi@inspirepharm.com
Thu Aug 30 10:54:00 GMT 2001
Alan,
He is correct.
defined(__CYGWIN__) should be removed now or it should be changed to
(defined(__CYGWIN__) && !defined(UNIXCONN))
I prefer second choice. In case someone does not want to use UNIXCONN. He
will have a choice to #define X_NO_SYS_UN by removing UNIXCOM define from
cygwin.cf.
It is left over from old days when I was working on XF86 3.3.x and Cygwin
did not have sys/un.h headers.
Suhaib
> -----Original Message-----
> From: AIDA Shinra [ mailto:aida_s@mx12.freecom.ne.jp ]
> Sent: Thursday, August 30, 2001 1:45 PM
> To: Alan Hourihane
> Cc: cygwin-xfree@sourceware.cygnus.com
> Subject: Re: Xos.h and sys/un.h conflict
>
>
> 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.
>
>
More information about the Cygwin-xfree
mailing list