mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
ITS#9235 Restore LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
This commit is contained in:
parent
a95e65d027
commit
fab49ef4a3
@ -1747,6 +1747,11 @@ fi
|
|||||||
if test $ol_link_threads != no ; then
|
if test $ol_link_threads != no ; then
|
||||||
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE,1,
|
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE,1,
|
||||||
[define to 1 if library is thread safe])
|
[define to 1 if library is thread safe])
|
||||||
|
|
||||||
|
dnl This could be enabled without threads if all of the
|
||||||
|
dnl reentrant functions are available. Needs testing.
|
||||||
|
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_REENTRANT,1,
|
||||||
|
[define to 1 if library is reentrant])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
|
@ -54,9 +54,10 @@ LDAP_BEGIN_DECL
|
|||||||
/* OpenLDAP API Features */
|
/* OpenLDAP API Features */
|
||||||
#define LDAP_API_FEATURE_X_OPENLDAP LDAP_VENDOR_VERSION
|
#define LDAP_API_FEATURE_X_OPENLDAP LDAP_VENDOR_VERSION
|
||||||
|
|
||||||
#if defined( LDAP_API_FEATURE_X_OPENLDAP_REENTRANT ) || \
|
#if defined( LDAP_API_FEATURE_X_OPENLDAP_REENTRANT )
|
||||||
defined( LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE )
|
|
||||||
# define LDAP_API_FEATURE_THREAD_SAFE 1
|
# define LDAP_API_FEATURE_THREAD_SAFE 1
|
||||||
|
#endif
|
||||||
|
#if defined( LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE )
|
||||||
# define LDAP_API_FEATURE_SESSION_THREAD_SAFE 1
|
# define LDAP_API_FEATURE_SESSION_THREAD_SAFE 1
|
||||||
# define LDAP_API_FEATURE_OPERATION_THREAD_SAFE 1
|
# define LDAP_API_FEATURE_OPERATION_THREAD_SAFE 1
|
||||||
#endif
|
#endif
|
||||||
|
@ -43,6 +43,9 @@
|
|||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* is -lldap reentrant or not */
|
||||||
|
#undef LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
|
||||||
|
|
||||||
/* is -lldap thread safe or not */
|
/* is -lldap thread safe or not */
|
||||||
#undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
|
#undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user