ITS#9235 Restore LDAP_API_FEATURE_X_OPENLDAP_REENTRANT

This commit is contained in:
Ryan Tandy 2020-06-04 18:03:44 -07:00
parent a95e65d027
commit fab49ef4a3
3 changed files with 11 additions and 2 deletions

View File

@ -1747,6 +1747,11 @@ fi
if test $ol_link_threads != no ; then
AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE,1,
[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
dnl ----------------------------------------------------------------

View File

@ -54,9 +54,10 @@ LDAP_BEGIN_DECL
/* OpenLDAP API Features */
#define LDAP_API_FEATURE_X_OPENLDAP LDAP_VENDOR_VERSION
#if defined( LDAP_API_FEATURE_X_OPENLDAP_REENTRANT ) || \
defined( LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE )
#if defined( LDAP_API_FEATURE_X_OPENLDAP_REENTRANT )
# 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_OPERATION_THREAD_SAFE 1
#endif

View File

@ -43,6 +43,9 @@
**
*/
/* is -lldap reentrant or not */
#undef LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
/* is -lldap thread safe or not */
#undef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE