X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_int_thread.h;h=385fef52f64dae40f1fce5d7c1a5874e73b9b48e;hb=3673cceb6c2157e4d077462f811077291fe8634c;hp=f89afb55a46c2f399381b4bccb4e53b0a4b1d88e;hpb=ec426532b2cca95330566b1941795dac7e03bb57;p=openldap diff --git a/include/ldap_int_thread.h b/include/ldap_int_thread.h index f89afb55a4..385fef52f6 100644 --- a/include/ldap_int_thread.h +++ b/include/ldap_int_thread.h @@ -1,14 +1,18 @@ +/* ldap_int_thread.h - ldap internal thread wrappers header file */ /* $OpenLDAP$ */ -/* - * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA +/* This work is part of OpenLDAP Software . + * + * Copyright 1998-2005 The OpenLDAP Foundation. * All rights reserved. * - * Redistribution and use in source and binary forms are permitted only - * as authorized by the OpenLDAP Public License. A copy of this - * license is available at http://www.OpenLDAP.org/license.html or - * in file LICENSE in the top-level directory of the distribution. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted only as authorized by the OpenLDAP + * Public License. + * + * A copy of this license is available in file LICENSE in the + * top-level directory of the distribution or, alternatively, at + * . */ -/* ldap_int_thread.h - ldap internal thread wrappers header file */ #ifndef _LDAP_INT_THREAD_H #define _LDAP_INT_THREAD_H @@ -61,7 +65,11 @@ LDAP_END_DECL * * **********************************/ -#include +#if defined( HAVE_MACH_CTHREADS_H ) +# include +#elif defined( HAVE_CTHREAD_H +# include +#endif LDAP_BEGIN_DECL @@ -187,10 +195,10 @@ LDAP_END_DECL LDAP_BEGIN_DECL -LIBLDAP_F(int) ldap_int_thread_initialize LDAP_P(( void )); -LIBLDAP_F(int) ldap_int_thread_destroy LDAP_P(( void )); -LIBLDAP_F(int) ldap_int_thread_pool_startup ( void ); -LIBLDAP_F(int) ldap_int_thread_pool_shutdown ( void ); +LDAP_F(int) ldap_int_thread_initialize LDAP_P(( void )); +LDAP_F(int) ldap_int_thread_destroy LDAP_P(( void )); +LDAP_F(int) ldap_int_thread_pool_startup ( void ); +LDAP_F(int) ldap_int_thread_pool_shutdown ( void ); #ifndef LDAP_THREAD_HAVE_TPOOL typedef struct ldap_int_thread_pool_s * ldap_int_thread_pool_t;