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