mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#9235 Only compile libldap_r sources when LDAP_R_COMPILE
This commit is contained in:
parent
a5c0b59398
commit
a10210db84
4 changed files with 20 additions and 0 deletions
|
|
@ -40,6 +40,9 @@
|
||||||
#include <ac/time.h>
|
#include <ac/time.h>
|
||||||
|
|
||||||
#include "ldap-int.h"
|
#include "ldap-int.h"
|
||||||
|
|
||||||
|
#ifdef LDAP_R_COMPILE
|
||||||
|
|
||||||
#include "ldap_pvt_thread.h" /* Get the thread interface */
|
#include "ldap_pvt_thread.h" /* Get the thread interface */
|
||||||
#define LDAP_THREAD_RDWR_IMPLEMENTATION
|
#define LDAP_THREAD_RDWR_IMPLEMENTATION
|
||||||
#include "ldap_thr_debug.h" /* May rename the symbols defined below */
|
#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_RDWR_DEBUG */
|
||||||
|
|
||||||
#endif /* LDAP_THREAD_HAVE_RDWR */
|
#endif /* LDAP_THREAD_HAVE_RDWR */
|
||||||
|
|
||||||
|
#endif /* LDAP_R_COMPILE */
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,9 @@
|
||||||
#include <ac/time.h>
|
#include <ac/time.h>
|
||||||
|
|
||||||
#include "ldap-int.h"
|
#include "ldap-int.h"
|
||||||
|
|
||||||
|
#ifdef LDAP_R_COMPILE
|
||||||
|
|
||||||
#include "ldap_pvt_thread.h"
|
#include "ldap_pvt_thread.h"
|
||||||
#include "ldap_queue.h"
|
#include "ldap_queue.h"
|
||||||
#include "ldap_rq.h"
|
#include "ldap_rq.h"
|
||||||
|
|
@ -219,3 +222,4 @@ ldap_pvt_runqueue_persistent_backload(
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* LDAP_R_COMPILE */
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,10 @@
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/unistd.h>
|
#include <ac/unistd.h>
|
||||||
|
|
||||||
|
#include "ldap-int.h"
|
||||||
|
|
||||||
|
#ifdef LDAP_R_COMPILE
|
||||||
|
|
||||||
#include "ldap_pvt_thread.h" /* Get the thread interface */
|
#include "ldap_pvt_thread.h" /* Get the thread interface */
|
||||||
#include "ldap_thr_debug.h" /* May redirect thread initialize/destroy calls */
|
#include "ldap_thr_debug.h" /* May redirect thread initialize/destroy calls */
|
||||||
|
|
||||||
|
|
@ -103,3 +107,5 @@ ldap_pvt_thread_sleep(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* LDAP_R_COMPILE */
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,9 @@
|
||||||
#include <ac/errno.h>
|
#include <ac/errno.h>
|
||||||
|
|
||||||
#include "ldap-int.h"
|
#include "ldap-int.h"
|
||||||
|
|
||||||
|
#ifdef LDAP_R_COMPILE
|
||||||
|
|
||||||
#include "ldap_pvt_thread.h" /* Get the thread interface */
|
#include "ldap_pvt_thread.h" /* Get the thread interface */
|
||||||
#include "ldap_queue.h"
|
#include "ldap_queue.h"
|
||||||
#define LDAP_THREAD_POOL_IMPLEMENTATION
|
#define LDAP_THREAD_POOL_IMPLEMENTATION
|
||||||
|
|
@ -1439,3 +1442,5 @@ ldap_pvt_thread_t ldap_pvt_thread_pool_tid( void *vctx )
|
||||||
return ctx->ltu_id;
|
return ctx->ltu_id;
|
||||||
}
|
}
|
||||||
#endif /* LDAP_THREAD_HAVE_TPOOL */
|
#endif /* LDAP_THREAD_HAVE_TPOOL */
|
||||||
|
|
||||||
|
#endif /* LDAP_R_COMPILE */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue