X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libevent%2Fevthread_win32.c;h=2389d72196dba229e9058fbc9ae70ada10e84da4;hb=a9d021328c3d004445a543c075514b5dc85a2202;hp=bd72be15e5ac9877988a16bbbf3c744b935d38b9;hpb=caad56fb97ea14d8b64df8879f68fe82175aa54f;p=netatalk.git diff --git a/libevent/evthread_win32.c b/libevent/evthread_win32.c index bd72be15..2389d721 100644 --- a/libevent/evthread_win32.c +++ b/libevent/evthread_win32.c @@ -1,5 +1,5 @@ /* - * Copyright 2009-2010 Niels Provos and Nick Mathewson + * Copyright 2009-2012 Niels Provos and Nick Mathewson * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -26,6 +26,10 @@ #include "event2/event-config.h" #ifdef WIN32 +#ifndef _WIN32_WINNT +/* Minimum required for InitializeCriticalSectionAndSpinCount */ +#define _WIN32_WINNT 0x0403 +#endif #include #define WIN32_LEAN_AND_MEAN #include