Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
dbad13ea
Commit
dbad13ea
authored
Aug 06, 2007
by
Pierangelo Masarati
Browse files
workaround open() being a macro in glibc 2.6 (ITS#5075)
parent
5f386d3e
Changes
4
Hide whitespace changes
Inline
Side-by-side
build/openldap.m4
View file @
dbad13ea
...
...
@@ -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 ) {
...
...
configure
View file @
dbad13ea
...
...
@@ -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 ) {
servers/slapd/back-bdb/back-bdb.h
View file @
dbad13ea
...
...
@@ -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
...
...
servers/slapd/back-bdb/init.c
View file @
dbad13ea
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment