This is the mail archive of the
cygwin-xfree@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: X-server
On Mon, Jun 14, 1999 at 09:15:12PM -0400, Suhaib M. Siddiqi wrote:
>what is the difference between sys/socket.h and cygwin/socket.h?
>
>In xc/programs/Xserver/os/connection.c we have
>
>#ifndef WIN32
>#include <sys/socket.h>
>
>When I changed it to
>
>#include <cygwin/socket.h>
>
>I get 100s of errors.
>
>The header file in cygwin/socket.h looks more like the one on Linux
>therefore I changed it back to <sys/socket.h>
>
>and added an extra line
>
>#ifdef __CYGWIN__
>#include <cygwin/socket.h>
>
>Doing that compilation of OS dependent libos.a went smooth.
>
>Does it matter if sys/socket.h and cygwin/socket.h both as used as I did?
Look at sys/socket.h. It includes cygwin/socket.h. You should be including
sys/socket.h.
-chris
- Follow-Ups:
- Re: X-server
- From: "Suhaib M. Siddiqi" <Ssiddiqi@InspirePharm.Com>
- References:
- Re: X-server
- From: Chris Faylor <cgf@cygnus.com>
- Re: X-server
- From: "Suhaib M. Siddiqi" <Ssiddiqi@InspirePharm.Com>
- Re: X-server
- From: "Suhaib M. Siddiqi" <Ssiddiqi@InspirePharm.Com>