ITS#9235 Only compile libldap_r sources when LDAP_R_COMPILE

This commit is contained in:
Ryan Tandy 2020-05-18 10:05:30 -07:00
parent a5c0b59398
commit a10210db84
4 changed files with 20 additions and 0 deletions

View 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 */

View 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 */

View file

@ -22,6 +22,10 @@
#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 */

View 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 */