mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
test: fix building with --disable-thread-support under win32
This commit is contained in:
parent
38716c653d
commit
a487706e10
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user