From 8a712eb5afb603465dfe812510dd7077bf626d17 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Sat, 12 Nov 2005 22:49:19 +0000
Subject: [PATCH] Eugene Kotlyarov found out that cygwin's poll() function
 isn't doing things right: http://curl.haxx.se/mail/archive-2005-11/0045.html
 so we now disable poll() and use select() on cygwin too (we already do the
 same choice on Mac OS X)

---
 CHANGES       | 5 +++++
 RELEASE-NOTES | 4 +++-
 configure.ac  | 4 ++--
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/CHANGES b/CHANGES
index 13ef347f16..77df717345 100644
--- a/CHANGES
+++ b/CHANGES
@@ -9,6 +9,11 @@
 
 
 Daniel (12 November 2005)
+- Eugene Kotlyarov found out that cygwin's poll() function isn't doing things
+  right: http://curl.haxx.se/mail/archive-2005-11/0045.html so we now disable
+  poll() and use select() on cygwin too (we already do the same choice on Mac
+  OS X)
+
 - Dima Barsky patched problem #1348930: the GnuTLS code completely ignored
   client certificates! (http://curl.haxx.se/bug/view.cgi?id=1348930).
 
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index 2fd2604332..bc2037a0a9 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -18,6 +18,7 @@ This release includes the following changes:
 
 This release includes the following bugfixes:
 
+ o don't use poll() on cygwin, it is defective
  o the GnuTLS code didn't support client certificates
  o TFTP over IPv6 works
  o no reverse lookups on IP addresses when ipv6-enabled
@@ -34,6 +35,7 @@ This release includes the following bugfixes:
 
 Other curl-related news since the previous public release:
 
+ o FTP-SSL is now RFC4217
  o CurlPas 2005-11-05 was released: http://curlpas.sf.net/
  o pycurl 7.15.0 was released http://pycurl.sf.net
  o New web mirrors:
@@ -46,6 +48,6 @@ advice from friends like these:
 
  Dave Dribin, Bradford Bruce, Temprimus, Ofer, Dima Barsky, Amol Pattekar, Jaz
  Fresh, tommink[at]post.pl, Gisle Vanem, Nis Jorgensen, Vilmos Nebehaj,
- Dmitry Bartsevich, David Lang
+ Dmitry Bartsevich, David Lang, Eugene Kotlyarov
 
         Thanks! (and sorry if I forgot to mention someone)
diff --git a/configure.ac b/configure.ac
index 629f0ba286..50fa2959cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1591,10 +1591,10 @@ AC_CHECK_DECL(basename, ,
 #endif
 )
 
-AC_MSG_CHECKING([if we are Mac OS X (to disable poll)])
+AC_MSG_CHECKING([if we are Mac OS X or cygwin to disable poll])
 disable_poll=no
 case $host in
-  *-*-darwin*)
+  *-*-darwin* | *-*-cygwin)
     disable_poll="yes";
     ;;
   *)
-- 
GitLab