]> granicus.if.org Git - curl/commitdiff
curl.h: include <sys/select.h> on cygwin too
authorDaniel Stenberg <daniel@haxx.se>
Wed, 27 Sep 2017 08:22:55 +0000 (10:22 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 27 Sep 2017 20:56:12 +0000 (22:56 +0200)
When building with -std=c++14 on cygwin, this header won't be
automatically included as it otherwise is.

The <sys/select.h> include decision should ideally be reversed and be
avoided where that header file doesn't exist.

Reported-by: Ian Fette
Fixes #1925

include/curl/curl.h

index 501e3d19b8c6db3a28052981a5bce0740d7fa87d..7139a33110b37da6b78082ed3889e024c85c8bfe 100644 (file)
@@ -74,6 +74,7 @@
 #if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
     defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
     defined(ANDROID) || defined(__ANDROID__) || defined(__OpenBSD__) || \
+    defined(__CYGWIN__) || \
    (defined(__FreeBSD_version) && (__FreeBSD_version < 800000))
 #include <sys/select.h>
 #endif