curl.h: <sys/select.h> for OpenBSD
authorChristian Weisgerber <naddy@mips.inka.de>
Wed, 4 Dec 2013 15:45:50 +0000 (16:45 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 6 Dec 2013 12:28:27 +0000 (13:28 +0100)
curl.h should also include <sys/select.h> on OpenBSD to reliably
pull in select().  Typically, including <sys/time.h> will be enough,
but not if strict standards-compliance is requested (e.g. by defining
_XOPEN_SOURCE).

include/curl/curl.h

index 5c63dd8..9bee934 100644 (file)
@@ -69,7 +69,7 @@
    require it! */
 #if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
     defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
-    defined(ANDROID) || defined(__ANDROID__) || \
+    defined(ANDROID) || defined(__ANDROID__) || defined(__OpenBSD__) || \
    (defined(__FreeBSD_version) && (__FreeBSD_version < 800000))
 #include <sys/select.h>
 #endif