From: Howard Chu Date: Sun, 31 Mar 2013 16:10:43 +0000 (-0800) Subject: MSVC doesn't define mode_t X-Git-Tag: OPENLDAP_REL_ENG_2_4_36~89^2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0c568117cea6764c3f12a0d69ddf54ee467d2dec;p=openldap MSVC doesn't define mode_t --- 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