Do not include <winsock2.h> on Cygwin even when we have it.
[bpt/guile.git] / libguile / socket.c
index 86b61ac..49501b7 100644 (file)
@@ -68,7 +68,8 @@
 #include <unistd.h>
 #endif
 #include <sys/types.h>
-#ifdef HAVE_WINSOCK2_H
+#if defined (HAVE_WINSOCK2_H) \
+  && !(defined (__CYGWIN32__) || defined (__CYGWIN__))
 #include <winsock2.h>
 #else
 #include <sys/socket.h>