diff --git a/libraries/libldap_r/thr_nt.c b/libraries/libldap_r/thr_nt.c index a3b622c5b9..8bae80e9a7 100644 --- a/libraries/libldap_r/thr_nt.c +++ b/libraries/libldap_r/thr_nt.c @@ -18,6 +18,10 @@ #if defined( HAVE_NT_THREADS ) +#define _WIN32_WINNT 0x0400 +#include +#include + #include "ldap_pvt_thread.h" /* Get the thread interface */ #define LDAP_THREAD_IMPLEMENTATION #include "ldap_thr_debug.h" /* May rename the symbols defined below */