#error "We can't compile without select() support!"
#endif
-#include "select.h"
-
#ifdef __BEOS__
/* BeOS has FD_SET defined in socket.h */
#include <socket.h>
#endif
+#include <curl/curl.h>
+
+#include "urldata.h"
+#include "connect.h"
+#include "select.h"
+
#ifdef WIN32
#define VALID_SOCK(s) (1) /* Win-sockets are not in range [0..FD_SETSIZE> */
#else
do {
r = select(maxfd + 1, &fds_read, &fds_write, &fds_err, &timeout);
- } while((r == -1) && (errno == EINTR));
+ } while((r == -1) && (Curl_ourerrno() == EINTR));
if (r < 0)
return -1;
do {
r = select(maxfd + 1, &fds_read, &fds_write, &fds_err, ptimeout);
- } while((r == -1) && (errno == EINTR));
+ } while((r == -1) && (Curl_ourerrno() == EINTR));
if (r < 0)
return -1;