summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-12-17 16:41:30 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-12-17 16:41:30 (GMT)
commit7e0b0014664d7db64ab13a31d0624e5d61b4227c (patch)
tree00aefb2baf00f1a4cb8beffd1135fea6e57d139d /Utilities/cmcurl
parent8a61950e4223c551a291cb0cc25a7a0232b2690a (diff)
downloadCMake-7e0b0014664d7db64ab13a31d0624e5d61b4227c.zip
CMake-7e0b0014664d7db64ab13a31d0624e5d61b4227c.tar.gz
CMake-7e0b0014664d7db64ab13a31d0624e5d61b4227c.tar.bz2
Fix missed _POLL_EMUL_H_ and HAVE_POLL combo
Diffstat (limited to 'Utilities/cmcurl')
-rw-r--r--Utilities/cmcurl/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmcurl/select.c b/Utilities/cmcurl/select.c
index 2bec8cb..51adbcf 100644
--- a/Utilities/cmcurl/select.c
+++ b/Utilities/cmcurl/select.c
@@ -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 r;
-#ifndef _POLL_EMUL_H_
+#if defined(HAVE_POLL) && !defined(_POLL_EMUL_H_)
do {
r = poll(ufds, nfds, timeout_ms);
} while((r == -1) && (errno == EINTR));