diff --git a/CMake/OtherTests.cmake b/CMake/OtherTests.cmake index 904c1c80e5..faba1484c0 100644 --- a/CMake/OtherTests.cmake +++ b/CMake/OtherTests.cmake @@ -88,23 +88,6 @@ if(NOT CMAKE_CROSSCOMPILING AND NOT APPLE) if(0 != poll(0, 0, 10)) { return 1; /* fail */ } - else { - /* detect the 10.12 poll() breakage */ - struct timeval before, after; - int rc; - size_t us; - - gettimeofday(&before, NULL); - rc = poll(NULL, 0, 500); - gettimeofday(&after, NULL); - - us = (after.tv_sec - before.tv_sec) * 1000000 + - (after.tv_usec - before.tv_usec); - - if(us < 400000) { - return 1; - } - } return 0; }" HAVE_POLL_FINE) endif() diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4 index 7a35b98ffe..6c6adca4b5 100644 --- a/m4/curl-functions.m4 +++ b/m4/curl-functions.m4 @@ -3477,26 +3477,10 @@ AC_DEFUN([CURL_CHECK_FUNC_POLL], [ AC_LANG_PROGRAM([[ $curl_includes_stdlib $curl_includes_poll - $curl_includes_time ]],[[ /* detect the original poll() breakage */ - if(0 != poll(0, 0, 10)) - exit(1); /* fail */ - else { - /* detect the 10.12 poll() breakage */ - struct timeval before, after; - int rc; - size_t us; - - gettimeofday(&before, NULL); - rc = poll(NULL, 0, 500); - gettimeofday(&after, NULL); - - us = (after.tv_sec - before.tv_sec) * 1000000 + - (after.tv_usec - before.tv_usec); - - if(us < 400000) - exit(1); + if(0 != poll(0, 0, 10)) { + return 1; /* fail */ } ]]) ],[