From 0c568117cea6764c3f12a0d69ddf54ee467d2dec Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 31 Mar 2013 08:10:43 -0800 Subject: [PATCH] MSVC doesn't define mode_t --- libraries/liblmdb/lmdb.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/liblmdb/lmdb.h b/libraries/liblmdb/lmdb.h index b94bd2d3b8..954062456e 100644 --- a/libraries/liblmdb/lmdb.h +++ b/libraries/liblmdb/lmdb.h @@ -137,6 +137,10 @@ extern "C" { #endif +#ifdef _MSC_VER +#define mode_t int +#endif + /** @defgroup mdb MDB API * @{ * @brief OpenLDAP Lightning Memory-Mapped Database Manager -- 2.39.5