mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Tweak mode_t def per Hallvard's suggestion
This commit is contained in:
parent
0c568117ce
commit
30da15a18d
@ -138,7 +138,9 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define mode_t int
|
||||
typedef int mdb_mode_t;
|
||||
#else
|
||||
typedef mode_t mdb_mode_t;
|
||||
#endif
|
||||
|
||||
/** @defgroup mdb MDB API
|
||||
@ -502,7 +504,7 @@ int mdb_env_create(MDB_env **env);
|
||||
* <li>EAGAIN - the environment was locked by another process.
|
||||
* </ul>
|
||||
*/
|
||||
int mdb_env_open(MDB_env *env, const char *path, unsigned int flags, mode_t mode);
|
||||
int mdb_env_open(MDB_env *env, const char *path, unsigned int flags, mdb_mode_t mode);
|
||||
|
||||
/** @brief Copy an MDB environment to the specified path.
|
||||
*
|
||||
|
@ -3378,7 +3378,7 @@ fail:
|
||||
#define CHANGELESS (MDB_FIXEDMAP|MDB_NOSUBDIR|MDB_RDONLY|MDB_WRITEMAP)
|
||||
|
||||
int
|
||||
mdb_env_open(MDB_env *env, const char *path, unsigned int flags, mode_t mode)
|
||||
mdb_env_open(MDB_env *env, const char *path, unsigned int flags, mdb_mode_t mode)
|
||||
{
|
||||
int oflags, rc, len, excl;
|
||||
char *lpath, *dpath;
|
||||
|
Loading…
Reference in New Issue
Block a user