]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap_r/thr_nt.c
fix test when slapo-memberof(5) built as module (ITS#5132)
[openldap] / libraries / libldap_r / thr_nt.c
index 24a7a8d4ae431b5dd029ccbdf37fb450acdb058f..f3d0755de99941f3a78f237b3c40a6d4349c9330 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
 
 #if defined( HAVE_NT_THREADS )
 
-#include "ldap_pvt_thread.h"
+#define _WIN32_WINNT 0x0400
+#include <windows.h>
+#include <process.h>
+
+#include "ldap_pvt_thread.h" /* Get the thread interface */
+#define LDAP_THREAD_IMPLEMENTATION
+#include "ldap_thr_debug.h"     /* May rename the symbols defined below */
 
 typedef struct ldap_int_thread_s {
        long tid;