diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-12-17 16:18:04 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-12-17 16:18:49 (GMT) |
commit | 44fca8b51af2e198d2d2cc6a2ad5f18838f9d235 (patch) | |
tree | 7a47864255475ed7c481e07ef163f98d1112c040 /Utilities | |
parent | 8d3689072394e6410c766eac9a8b0cae598f6500 (diff) | |
download | CMake-44fca8b51af2e198d2d2cc6a2ad5f18838f9d235.zip CMake-44fca8b51af2e198d2d2cc6a2ad5f18838f9d235.tar.gz CMake-44fca8b51af2e198d2d2cc6a2ad5f18838f9d235.tar.bz2 |
Check for poll when looking for _POLL_EMUL_H_
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmcurl/select.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmcurl/select.c b/Utilities/cmcurl/select.c index 3656edd..2bec8cb 100644 --- a/Utilities/cmcurl/select.c +++ b/Utilities/cmcurl/select.c @@ -78,7 +78,7 @@ */ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms) { -#if !defined(_POLL_EMUL_H_) || defined(CURL_HAVE_WSAPOLL) +#if (defined(HAVE_POLL) && !defined(_POLL_EMUL_H_)) || defined(CURL_HAVE_WSAPOLL) struct pollfd pfd[2]; int num; int r; @@ -96,7 +96,7 @@ int Curl_select(curl_socket_t readfd, curl_socket_t writefd, int timeout_ms) num++; } -#ifndef _POLL_EMUL_H_ +#if defined(HAVE_POLL) && !defined(_POLL_EMUL_H_) do { r = poll(pfd, num, timeout_ms); } while((r == -1) && (errno == EINTR)); |