diff --git a/source/unix/tuv_unix_port_system.c b/source/unix/tuv_unix_port_system.c index 9c90a4dd..df04ff57 100644 --- a/source/unix/tuv_unix_port_system.c +++ b/source/unix/tuv_unix_port_system.c @@ -13,6 +13,8 @@ * limitations under the License. */ +#include // usleep + #include #include "uv__unix_platform.h" diff --git a/test/test_timer.c b/test/test_timer.c index 26ab8688..71a73e5e 100644 --- a/test/test_timer.c +++ b/test/test_timer.c @@ -35,7 +35,6 @@ */ #include -#include // usleep #include @@ -342,7 +341,7 @@ TEST_IMPL(timer_run_once) { TUV_ASSERT(0 == uv_timer_start(&timer_handle, timer_run_once_timer_cb, 1, 0)); // slow systems may have nano second resolution // give some time to sleep so that time tick is changed - uv_usleep(1000); + tuv_usleep(1000); TUV_ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_ONCE)); TUV_ASSERT(2 == timer_run_once_timer_cb_called);