Fix missed _POLL_EMUL_H_ and HAVE_POLL combo
This commit is contained in:
parent
8a61950e42
commit
7e0b001466
|
@ -220,7 +220,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms)
|
||||||
int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
|
int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
#ifndef _POLL_EMUL_H_
|
#if defined(HAVE_POLL) && !defined(_POLL_EMUL_H_)
|
||||||
do {
|
do {
|
||||||
r = poll(ufds, nfds, timeout_ms);
|
r = poll(ufds, nfds, timeout_ms);
|
||||||
} while((r == -1) && (errno == EINTR));
|
} while((r == -1) && (errno == EINTR));
|
||||||
|
|
Loading…
Reference in New Issue