Issue 8067 - MDB library patch: Added ssize_t typedef for Visual C++
Summary: MDB library patch: Added ssize_t typedef for Visual C++
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: build (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-28 06:56 UTC by pmedvedev@gmail.com
Modified: 2015-11-30 18:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pmedvedev@gmail.com 2015-02-28 06:56:49 UTC
Full_Name: Pavel Medvedev
Version: 
OS: Windows 7
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (217.25.225.40)



---
 libraries/liblmdb/mdb.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c
index 984a5bd..65293f4 100644
--- a/libraries/liblmdb/mdb.c
+++ b/libraries/liblmdb/mdb.c%%0
@@ -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
 %
 A #if defined(__sun) || defined(ANDROID)
 /* Most platforms have posix_memalign, older may only have memalign */
Comment 1 OpenLDAP project 2015-08-19 15:40:23 UTC
added in mdb.master
Comment 2 Howard Chu 2015-08-19 15:40:23 UTC
changed notes
changed state Open to Test
moved from Incoming to Build
Comment 3 Quanah Gibson-Mount 2015-11-30 18:23:10 UTC
changed state Test to Closed