mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Add winsock init functions to bench.c so it can run on win32.
svn:r579
This commit is contained in:
parent
9cc67e5f78
commit
fd418645ff
@ -128,6 +128,10 @@ main (int argc, char **argv)
|
|||||||
struct timeval *tv;
|
struct timeval *tv;
|
||||||
int *cp;
|
int *cp;
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
WSADATA WSAData;
|
||||||
|
WSAStartup(0x101, &WSAData);
|
||||||
|
#endif
|
||||||
num_pipes = 100;
|
num_pipes = 100;
|
||||||
num_active = 1;
|
num_active = 1;
|
||||||
num_writes = num_pipes;
|
num_writes = num_pipes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user