diff --git a/test/bench_http.c b/test/bench_http.c index 6d0d9717..0c46855f 100644 --- a/test/bench_http.c +++ b/test/bench_http.c @@ -138,7 +138,9 @@ main(int argc, char **argv) #ifdef _WIN32 case 'i': use_iocp = 1; +#ifdef EVTHREAD_USE_WINDOWS_THREADS_IMPLEMENTED evthread_use_windows_threads(); +#endif event_config_set_flag(cfg,EVENT_BASE_FLAG_STARTUP_IOCP); break; #endif diff --git a/test/print-winsock-errors.c b/test/print-winsock-errors.c index ab6e610e..64d6b0e7 100644 --- a/test/print-winsock-errors.c +++ b/test/print-winsock-errors.c @@ -15,7 +15,9 @@ int main (int argc, char **argv) int i, j; const char *s1, *s2; +#ifdef EVTHREAD_USE_WINDOWS_THREADS_IMPLEMENTED evthread_use_windows_threads (); +#endif s1 = evutil_socket_error_to_string (WSAEINTR); diff --git a/test/test-ratelim.c b/test/test-ratelim.c index 17babfdc..9ee989bd 100644 --- a/test/test-ratelim.c +++ b/test/test-ratelim.c @@ -279,7 +279,9 @@ test_ratelimiting(void) #ifdef _WIN32 if (cfg_enable_iocp) { +#ifdef EVTHREAD_USE_WINDOWS_THREADS_IMPLEMENTED evthread_use_windows_threads(); +#endif event_config_set_flag(base_cfg, EVENT_BASE_FLAG_STARTUP_IOCP); } #endif