aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-03-27 18:15:26 +0000
committerYang Tse <yangsita@gmail.com>2007-03-27 18:15:26 +0000
commiteed47311f8afb47b5a68b512c58c7031b91ff180 (patch)
tree3fe5f336c02a11f73ea7899b93ef4686275e94a6 /lib/easy.c
parent59eaae42b8f4275e044cb9ed186be0054274c74a (diff)
New Internal wrapper function Curl_select() around select (2), it
uses poll() when a fine poll() is available, so now libcurl can be built without select() support at all if a fine poll() is available.
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/easy.c b/lib/easy.c
index c16654d65..dc18c7488 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -61,10 +61,6 @@
#include <sys/param.h>
#endif
-#ifdef HAVE_SYS_SELECT_H
-#include <sys/select.h>
-#endif
-
#endif /* WIN32 ... */
#include "urldata.h"
@@ -79,6 +75,7 @@
#include "memory.h"
#include "progress.h"
#include "easyif.h"
+#include "select.h"
#include "sendf.h" /* for failf function prototype */
#include <ca-bundle.h>
@@ -417,7 +414,7 @@ CURLcode curl_easy_perform(CURL *easy)
/* get file descriptors from the transfers */
curl_multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd);
- rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
+ rc = Curl_select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
if(rc == -1)
/* select error */