]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9235 Delete LDAP_THREAD_SAFE
authorRyan Tandy <ryan@nardis.ca>
Sat, 30 May 2020 17:34:16 +0000 (10:34 -0700)
committerRyan Tandy <ryan@nardis.ca>
Sat, 4 Jul 2020 00:24:16 +0000 (17:24 -0700)
include/ldap.h
include/ldap_features.hin
libraries/libldap/ldap-int.h
libraries/libldap/options.c

index 9d5679ae84074ecb119040de229b408ebd00a3b8..670850647793de61dc510e8054e245b43853056c 100644 (file)
@@ -55,19 +55,11 @@ LDAP_BEGIN_DECL
 #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 */
index df5b8dab6e078df8cd844dab22c5f3dfdca7b722..5f6c8016c7c7c3ec57b959dfe635640b8c510b6d 100644 (file)
 **             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.
 **
 */
 
index b0f412877f79e2dbafeff1fd43f433c04550d25d..8f44d2ada0e3d07ca370034ef93357619002e170 100644 (file)
@@ -22,7 +22,6 @@
 
 #ifndef NO_THREADS
 #define LDAP_R_COMPILE 1
-#define LDAP_THREAD_SAFE 1
 #endif
 
 #include "../liblber/lber-int.h"
index 1c7980cf8d85545e0cb8fad13655510abcafa6c5..c8ce9e57740b25995966800f1dbe8183cf5ca3ce 100644 (file)
@@ -71,8 +71,7 @@ static const LDAPAPIFeatureInfo features[] = {
                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",