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