]> git.sur5r.net Git - openldap/blob - acconfig.h
s/Id/OpenLDAP/ in RCSids
[openldap] / acconfig.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted only
7  * as authorized by the OpenLDAP Public License.  A copy of this
8  * license is available at http://www.OpenLDAP.org/license.html or
9  * in file LICENSE in the top-level directory of the distribution.
10  */
11
12 #ifndef _LDAP_PORTABLE_H
13 #define _LDAP_PORTABLE_H
14
15 /* end of preamble */
16 @TOP@
17
18 /* define this if needed to get reentrant functions */
19 #ifndef REENTRANT
20 #undef REENTRANT
21 #endif
22 #ifndef _REENTRANT
23 #undef _REENTRANT
24 #endif
25
26 /* define this if needed to get threadsafe functions */
27 #ifndef THREADSAFE
28 #undef THREADSAFE
29 #endif
30 #ifndef _THREADSAFE
31 #undef _THREADSAFE
32 #endif
33 #ifndef THREAD_SAFE
34 #undef THREAD_SAFE
35 #endif
36 #ifndef _THREAD_SAFE
37 #undef _THREAD_SAFE
38 #endif
39
40 #ifndef _SGI_MP_SOURCE
41 #undef _SGI_MP_SOURCE
42 #endif
43
44 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
45 #undef GWINSZ_IN_SYS_IOCTL
46
47 /* These are defined in ldap_features.h */
48 /*
49         LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
50         LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
51         LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
52         LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
53 */
54
55 /* These are defined in lber_types.h */
56 /*
57         LBER_INT_T
58         LBER_LEN_T
59         LBER_SOCKET_T
60         LBER_TAG_T
61 */
62
63 \f
64 /* Leave that blank line there!!  Autoheader needs it. */
65
66 @BOTTOM@
67 /* begin of postamble */
68
69 #ifndef __NEED_PROTOTYPES
70 /* force LDAP_P to always include prototypes */
71 #define __NEED_PROTOTYPES 1
72 #endif
73
74 #ifdef HAVE_STDDEF_H
75 #       include <stddef.h>
76 #endif
77
78 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
79 #define LDAP_TEST
80 #endif
81 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
82 #define LDAP_DEBUG
83 #endif
84
85 #include "ldap_cdefs.h"
86 #include "ldap_features.h"
87
88 #include "ac/assert.h"
89
90 #endif /* _LDAP_PORTABLE_H */