diff options
author | Peter Rosin <peda@lysator.liu.se> | 2011-05-26 10:10:57 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-27 23:14:10 -0400 |
commit | 816115a17ef5ce6148cf45389ddf8e8a327f206b (patch) | |
tree | 90e8809cb9c736f626cbfdf0f14c03e485f994d0 /listener.c | |
parent | 203ba2742f2750fd27967b902ba403b6331e40a5 (diff) | |
download | libevent-816115a17ef5ce6148cf45389ddf8e8a327f206b.tar.gz |
InitializeCriticalSectionAndSpinCount requires _WIN32_WINNT >= 0x0403.
Diffstat (limited to 'listener.c')
-rw-r--r-- | listener.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -29,6 +29,10 @@ #include "event2/event-config.h" #ifdef WIN32 +#ifndef _WIN32_WINNT +/* Minimum required for InitializeCriticalSectionAndSpinCount */ +#define _WIN32_WINNT 0x0403 +#endif #include <winsock2.h> #include <ws2tcpip.h> #include <mswsock.h> |