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
- To: "'AIDA Shinra'" <aida_s at mx12 dot freecom dot ne dot jp>, "'Alan Hourihane'" <alanh at fairlite dot demon dot co dot uk>
- Subject: RE: Xos.h and sys/un.h conflict
- From: Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Date: Thu, 30 Aug 2001 13:54:11 -0400
- Cc: "'cygwin-xfree at sourceware dot cygnus dot com'" <cygwin-xfree at sourceware dot cygnus dot com>
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.
>
>