From 8d198fdd5a0090e0158cd942109b0531a481dfc6 Mon Sep 17 00:00:00 2001 From: Pavel Medvedev Date: Wed, 19 Aug 2015 16:39:08 +0100 Subject: [PATCH] ITS#8067 add ssize_t typedef for MSVC --- libraries/liblmdb/mdb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 61337a0..b5ecd21 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -96,7 +96,13 @@ extern int cacheflush(char *addr, int nbytes, int cache); #include #include #include + +#ifdef _MSC_VER +#include +typedef SSIZE_T ssize_t; +#else #include +#endif #if defined(__sun) || defined(ANDROID) /* Most platforms have posix_memalign, older may only have memalign */