]> git.sur5r.net Git - openldap/blob - acconfig.h
Install *.schema only
[openldap] / acconfig.h
1 /*
2  * Copyright 1998-2000 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
16 #if !defined(SLAPD_SCHEMA_COMPAT) && !defined(SLAPD_SCHEMA_NOT_COMPAT)
17         /* define SLAPD_SCHEMA_COMPAT if you want old schema codes */
18 #define SLAPD_SCHEMA_NOT_COMPAT 1
19 #endif
20
21 @TOP@
22
23 /* define this if needed to get reentrant functions */
24 #ifndef REENTRANT
25 #undef REENTRANT
26 #endif
27 #ifndef _REENTRANT
28 #undef _REENTRANT
29 #endif
30
31 /* define this if needed to get threadsafe functions */
32 #ifndef THREADSAFE
33 #undef THREADSAFE
34 #endif
35 #ifndef _THREADSAFE
36 #undef _THREADSAFE
37 #endif
38 #ifndef THREAD_SAFE
39 #undef THREAD_SAFE
40 #endif
41 #ifndef _THREAD_SAFE
42 #undef _THREAD_SAFE
43 #endif
44
45 #ifndef _SGI_MP_SOURCE
46 #undef _SGI_MP_SOURCE
47 #endif
48
49 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
50 #undef GWINSZ_IN_SYS_IOCTL
51
52 /* These are defined in ldap_features.h */
53 /*
54         LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
55         LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
56         LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
57         LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
58         LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
59 */
60
61 /* These are defined in lber_types.h */
62 /*
63         LBER_INT_T
64         LBER_LEN_T
65         LBER_SOCKET_T
66         LBER_TAG_T
67 */
68
69 /* define to character address type */
70 #undef caddr_t
71
72 /* define to signed size type */
73 #undef ssize_t
74
75 \f
76 /* Leave that blank line there!!  Autoheader needs it. */
77
78 @BOTTOM@
79
80 /* begin of postamble */
81
82 #ifdef _WIN32
83         /* don't suck in all of the win32 api */
84 #       define WIN32_LEAN_AND_MEAN 1
85 #endif
86
87 #ifndef __NEED_PROTOTYPES
88 /* force LDAP_P to always include prototypes */
89 #define __NEED_PROTOTYPES 1
90 #endif
91
92 #ifdef HAVE_STDDEF_H
93 #       include <stddef.h>
94 #endif
95
96 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
97 #define LDAP_TEST
98 #endif
99 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
100 #define LDAP_DEBUG
101 #endif
102
103 #include "ldap_cdefs.h"
104 #include "ldap_features.h"
105
106 #include "ac/assert.h"
107
108 #endif /* _LDAP_PORTABLE_H */