projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80e997a
)
ITS#8067 add ssize_t typedef for MSVC
author
Pavel Medvedev
<pmedvedev@gmail.com>
Wed, 19 Aug 2015 15:39:08 +0000
(16:39 +0100)
committer
Howard Chu
<hyc@openldap.org>
Wed, 19 Aug 2015 15:39:08 +0000
(16:39 +0100)
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
61337a0
..
b5ecd21
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-96,7
+96,13
@@
extern int cacheflush(char *addr, int nbytes, int cache);
#include <stdlib.h>
#include <string.h>
#include <time.h>
+
+#ifdef _MSC_VER
+#include <io.h>
+typedef SSIZE_T ssize_t;
+#else
#include <unistd.h>
+#endif
#if defined(__sun) || defined(ANDROID)
/* Most platforms have posix_memalign, older may only have memalign */