X-server
Chris Faylor
cgf@cygnus.com
Mon Jun 14 18:19:00 GMT 1999
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
More information about the Cygwin-xfree
mailing list