]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9235 Only compile libldap_r sources when LDAP_R_COMPILE
authorRyan Tandy <ryan@nardis.ca>
Mon, 18 May 2020 17:05:30 +0000 (10:05 -0700)
committerRyan Tandy <ryan@nardis.ca>
Sat, 4 Jul 2020 00:23:14 +0000 (17:23 -0700)
libraries/libldap/rdwr.c
libraries/libldap/rq.c
libraries/libldap/threads.c
libraries/libldap/tpool.c

index c996e48bca15e3668f62b63ab88349c395622476..71dc537a871bd72da10b6b140e7ab1796252f455 100644 (file)
@@ -40,6 +40,9 @@
 #include <ac/time.h>
 
 #include "ldap-int.h"
+
+#ifdef LDAP_R_COMPILE
+
 #include "ldap_pvt_thread.h" /* Get the thread interface */
 #define LDAP_THREAD_RDWR_IMPLEMENTATION
 #include "ldap_thr_debug.h"  /* May rename the symbols defined below */
@@ -456,3 +459,5 @@ int ldap_pvt_thread_rdwr_active(ldap_pvt_thread_rdwr_t *rwlock)
 #endif /* LDAP_RDWR_DEBUG */
 
 #endif /* LDAP_THREAD_HAVE_RDWR */
+
+#endif /* LDAP_R_COMPILE */
index 3721c1a775dbd32c506c22f945a792663550b1e4..e4d21b2d8562fa69c41e86cd89598b5ada8fec56 100644 (file)
@@ -29,6 +29,9 @@
 #include <ac/time.h>
 
 #include "ldap-int.h"
+
+#ifdef LDAP_R_COMPILE
+
 #include "ldap_pvt_thread.h"
 #include "ldap_queue.h"
 #include "ldap_rq.h"
@@ -219,3 +222,4 @@ ldap_pvt_runqueue_persistent_backload(
        return count;
 }
 
+#endif /* LDAP_R_COMPILE */
index 7d62b604578da2bf2dd55a3e5e59c9f79493cd70..cac0a44a11ceb5e41d042c1c6ea99af5fec41f46 100644 (file)
 #include <ac/string.h>
 #include <ac/unistd.h>
 
+#include "ldap-int.h"
+
+#ifdef LDAP_R_COMPILE
+
 #include "ldap_pvt_thread.h" /* Get the thread interface */
 #include "ldap_thr_debug.h"  /* May redirect thread initialize/destroy calls */
 
@@ -103,3 +107,5 @@ ldap_pvt_thread_sleep(
        return 0;
 }
 #endif
+
+#endif /* LDAP_R_COMPILE */
index 9c061e66f1f7a798f05f0f72e6a08fa62ede82e3..5df3dd76af639cbf5b517f5cd4113bc28056a3a6 100644 (file)
@@ -25,6 +25,9 @@
 #include <ac/errno.h>
 
 #include "ldap-int.h"
+
+#ifdef LDAP_R_COMPILE
+
 #include "ldap_pvt_thread.h" /* Get the thread interface */
 #include "ldap_queue.h"
 #define LDAP_THREAD_POOL_IMPLEMENTATION
@@ -1439,3 +1442,5 @@ ldap_pvt_thread_t ldap_pvt_thread_pool_tid( void *vctx )
        return ctx->ltu_id;
 }
 #endif /* LDAP_THREAD_HAVE_TPOOL */
+
+#endif /* LDAP_R_COMPILE */