From 22958b0f9ed025c6df0926002c58318db33ac896 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 746f416..947c47d 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 */