From: Pavel Medvedev Date: Wed, 19 Aug 2015 15:39:08 +0000 (+0100) Subject: ITS#8067 add ssize_t typedef for MSVC X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d198fdd5a0090e0158cd942109b0531a481dfc6;p=openldap ITS#8067 add ssize_t typedef for MSVC --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 61337a0a6b..b5ecd21369 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 */