mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 23:19:59 -05:00
ITS#5824: #if/#elif issues in thread #includes
This commit is contained in:
parent
1eee4fd6cb
commit
47560a77c7
2 changed files with 6 additions and 6 deletions
|
|
@ -80,7 +80,7 @@ LDAP_END_DECL
|
|||
|
||||
#if defined( HAVE_MACH_CTHREADS_H )
|
||||
# include <mach/cthreads.h>
|
||||
#elif defined( HAVE_CTHREAD_H
|
||||
#elif defined( HAVE_CTHREADS_H )
|
||||
# include <cthreads.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -59,12 +59,12 @@ ldap_pvt_thread_set_concurrency LDAP_P(( int ));
|
|||
|
||||
#ifndef LDAP_PVT_THREAD_H_DONE
|
||||
#define LDAP_PVT_THREAD_SET_STACK_SIZE
|
||||
#ifndef LDAP_PVT_THREAD_STACK_SIZE
|
||||
/* The size may be explicitly #defined to zero to disable it. */
|
||||
#if defined( LDAP_PVT_THREAD_STACK_SIZE ) && LDAP_PVT_THREAD_STACK_SIZE == 0
|
||||
# undef LDAP_PVT_THREAD_SET_STACK_SIZE
|
||||
#elif !defined( LDAP_PVT_THREAD_STACK_SIZE )
|
||||
/* LARGE stack. Will be twice as large on 64 bit machine. */
|
||||
#define LDAP_PVT_THREAD_STACK_SIZE ( 1 * 1024 * 1024 * sizeof(void *) )
|
||||
/* May be explicitly defined to zero to disable it */
|
||||
#elif LDAP_PVT_THREAD_STACK_SIZE == 0
|
||||
#undef LDAP_PVT_THREAD_SET_STACK_SIZE
|
||||
# define LDAP_PVT_THREAD_STACK_SIZE ( 1 * 1024 * 1024 * sizeof(void *) )
|
||||
#endif
|
||||
#endif /* !LDAP_PVT_THREAD_H_DONE */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue