mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
workaround open() being a macro in glibc 2.6 (ITS#5075)
This commit is contained in:
parent
5f386d3e31
commit
dbad13ead2
@ -628,9 +628,9 @@ main()
|
||||
}
|
||||
|
||||
#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
|
||||
rc = env->open( env, NULL, flags, 0 );
|
||||
rc = (env->open)( env, NULL, flags, 0 );
|
||||
#else
|
||||
rc = env->open( env, NULL, NULL, flags, 0 );
|
||||
rc = (env->open)( env, NULL, NULL, flags, 0 );
|
||||
#endif
|
||||
|
||||
if ( rc == 0 ) {
|
||||
|
4
configure
vendored
4
configure
vendored
@ -31147,9 +31147,9 @@ main()
|
||||
}
|
||||
|
||||
#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
|
||||
rc = env->open( env, NULL, flags, 0 );
|
||||
rc = (env->open)( env, NULL, flags, 0 );
|
||||
#else
|
||||
rc = env->open( env, NULL, NULL, flags, 0 );
|
||||
rc = (env->open)( env, NULL, NULL, flags, 0 );
|
||||
#endif
|
||||
|
||||
if ( rc == 0 ) {
|
||||
|
@ -239,7 +239,7 @@ struct bdb_op_info {
|
||||
};
|
||||
|
||||
#define DB_OPEN(db, file, name, type, flags, mode) \
|
||||
(db)->open(db, file, name, type, flags, mode)
|
||||
((db)->open)(db, file, name, type, flags, mode)
|
||||
|
||||
#if DB_VERSION_MAJOR < 4
|
||||
#define LOCK_DETECT(env,f,t,a) lock_detect(env, f, t, a)
|
||||
@ -270,7 +270,7 @@ struct bdb_op_info {
|
||||
#if DB_VERSION_FULL >= 0x04010011
|
||||
#undef DB_OPEN
|
||||
#define DB_OPEN(db, file, name, type, flags, mode) \
|
||||
(db)->open(db, NULL, file, name, type, flags, mode)
|
||||
((db)->open)(db, NULL, file, name, type, flags, mode)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -298,7 +298,7 @@ shm_retry:
|
||||
bdb->bi_dbenv->set_shm_key( bdb->bi_dbenv, bdb->bi_shm_key );
|
||||
flags |= DB_SYSTEM_MEM;
|
||||
}
|
||||
rc = bdb->bi_dbenv->open( bdb->bi_dbenv, dbhome,
|
||||
rc = (bdb->bi_dbenv->open)( bdb->bi_dbenv, dbhome,
|
||||
flags | do_recover, bdb->bi_dbenv_mode );
|
||||
|
||||
if ( rc ) {
|
||||
|
Loading…
Reference in New Issue
Block a user