From: Pavel Medvedev Date: Wed, 19 Aug 2015 15:39:08 +0000 (+0100) Subject: ITS#8067 add ssize_t typedef for MSVC X-Git-Tag: LMDB_0.9.17~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22958b0f9ed025c6df0926002c58318db33ac896;p=openldap ITS#8067 add ssize_t typedef for MSVC --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 746f4165e9..947c47dccc 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 */