aboutsummaryrefslogtreecommitdiff
path: root/lib/setup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-06-08 06:12:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-06-08 06:12:30 +0000
commit990e56fb13e1e538415a69c69754b21609a14ed6 (patch)
treee52e877df75c3b94d4eaa8270e38185dc77b2349 /lib/setup.h
parent2bd3033f681eb3cb204f285bd0b2f0b8aa176c7e (diff)
Brian Dessent's fixes for cygwin builds
Diffstat (limited to 'lib/setup.h')
-rw-r--r--lib/setup.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 13f210a8a..cef40288e 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -79,10 +79,12 @@
* Include header files for windows builds before redefining anything.
* Use this preproessor block only to include or exclude windows.h,
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs
- * to any other further and independant block.
+ * to any other further and independant block. Under Cygwin things work
+ * just as under linux (e.g. <sys/socket.h>) and the winsock headers should
+ * never be included.
*/
-#ifdef HAVE_WINDOWS_H
+#if defined(HAVE_WINDOWS_H) && !defined(__CYGWIN__)
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif