diff options
Diffstat (limited to 'libs/libcurl/src/select.h')
-rw-r--r-- | libs/libcurl/src/select.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/libcurl/src/select.h b/libs/libcurl/src/select.h index 899c9c9b67..d1d3d8564b 100644 --- a/libs/libcurl/src/select.h +++ b/libs/libcurl/src/select.h @@ -93,7 +93,7 @@ int Curl_wait_ms(timediff_t timeout_ms); #define FDSET_SOCK(x) 1
#define VERIFY_SOCK(x) do { \
if(!VALID_SOCK(x)) { \
- SET_SOCKERRNO(WSAEINVAL); \
+ SET_SOCKERRNO(SOCKEINVAL); \
return -1; \
} \
} while(0)
@@ -105,7 +105,7 @@ int Curl_wait_ms(timediff_t timeout_ms); #define VERIFY_SOCK(x) do { \
if(!VALID_SOCK(x) || !FDSET_SOCK(x)) { \
- SET_SOCKERRNO(EINVAL); \
+ SET_SOCKERRNO(SOCKEINVAL); \
return -1; \
} \
} while(0)
@@ -122,6 +122,8 @@ void Curl_pollfds_init(struct curl_pollfds *cpfds, struct pollfd *static_pfds,
unsigned int static_count);
+void Curl_pollfds_reset(struct curl_pollfds *cpfds);
+
void Curl_pollfds_cleanup(struct curl_pollfds *cpfds);
CURLcode Curl_pollfds_add_ps(struct curl_pollfds *cpfds,
|