#define LDAP_API_FEATURE_X_OPENLDAP LDAP_VENDOR_VERSION
#if defined( LDAP_API_FEATURE_X_OPENLDAP_REENTRANT ) || \
- ( defined( LDAP_THREAD_SAFE ) && \
- defined( LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE ) )
- /* -lldap may or may not be thread safe */
- /* -lldap_r, if available, is always thread safe */
+ defined( LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE )
# define LDAP_API_FEATURE_THREAD_SAFE 1
# define LDAP_API_FEATURE_SESSION_THREAD_SAFE 1
# define LDAP_API_FEATURE_OPERATION_THREAD_SAFE 1
#endif
-#if defined( LDAP_THREAD_SAFE ) && \
- defined( LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE )
-/* #define LDAP_API_FEATURE_SESSION_SAFE 1 */
-/* #define LDAP_API_OPERATION_SESSION_SAFE 1 */
-#endif
#define LDAP_PORT 389 /* ldap:/// default LDAP port */
** LDAP_API_FEATURE_OPERATION_THREAD_SAFE
**
** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
-** can be used to determine if -lldap_r is available at compile
-** time. You must define LDAP_THREAD_SAFE if and only if you
-** link with -lldap_r.
-**
-** If you fail to define LDAP_THREAD_SAFE when linking with
-** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
-** provided header definitions and declarations may be incorrect.
+** can be used to determine if -lldap is thread safe at compile
+** time.
**
*/
LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
},
#endif
-#if defined( LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE ) && \
- defined( LDAP_THREAD_SAFE )
+#ifdef LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
{ /* OpenLDAP Thread Safe */
LDAP_FEATURE_INFO_VERSION,
"X_OPENLDAP_THREAD_SAFE",