--- openldap-2.4.39-orig/servers/slapd/back-mdb/back-mdb.h	2014-01-25 14:36:15.000000000 +0100
+++ openldap-2.4.39/servers/slapd/back-mdb/back-mdb.h	2014-08-15 11:09:50.719142500 +0200
@@ -17,6 +17,10 @@
 #ifndef _BACK_MDB_H_
 #define _BACK_MDB_H_
 
+#ifdef _WIN32
+#include <stdint.h>
+#endif
+
 #include <portable.h>
 #include "slap.h"
 #include "lmdb.h"
