>Oh, one question, 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> > You have to include sys/socket.h on cygwin. Most of the code must be compiled as unix but not win32 version. Sergey Okhapkin http://www.lexa.ru/sos Piscataway, NJ