acconfig.h 2.16 KB
Newer Older
1
/*
Kurt Zeilenga's avatar
Kurt Zeilenga committed
2
 * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
3
4
5
6
7
8
9
 * 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.
 */
Kurt Zeilenga's avatar
Kurt Zeilenga committed
10

11
12
#ifndef _LDAP_PORTABLE_H
#define _LDAP_PORTABLE_H
Kurt Zeilenga's avatar
Kurt Zeilenga committed
13

14
/* end of preamble */
15

16
17
18
19
20
#if !defined(SLAPD_SCHEMA_COMPAT) && !defined(SLAPD_SCHEMA_NOT_COMPAT)
	/* define SLAPD_SCHEMA_COMPAT if you want old schema codes */
#define SLAPD_SCHEMA_NOT_COMPAT 1
#endif

21
@TOP@
22
23

/* define this if needed to get reentrant functions */
24
#ifndef REENTRANT
Kurt Zeilenga's avatar
Kurt Zeilenga committed
25
#undef REENTRANT
26
27
#endif
#ifndef _REENTRANT
28
#undef _REENTRANT
29
#endif
30
31

/* define this if needed to get threadsafe functions */
32
#ifndef THREADSAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
33
#undef THREADSAFE
34
35
#endif
#ifndef _THREADSAFE
36
#undef _THREADSAFE
37
38
#endif
#ifndef THREAD_SAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
39
#undef THREAD_SAFE
40
41
#endif
#ifndef _THREAD_SAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
42
#undef _THREAD_SAFE
43
#endif
44

45
46
47
48
#ifndef _SGI_MP_SOURCE
#undef _SGI_MP_SOURCE
#endif

49
50
51
/* define this if TIOCGWINSZ is defined in sys/ioctl.h */
#undef GWINSZ_IN_SYS_IOCTL

52
53
/* These are defined in ldap_features.h */
/*
54
55
	LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
	LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
56
	LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
57
	LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
58
59
	LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
*/
60

61
62
63
64
65
66
67
/* These are defined in lber_types.h */
/*
	LBER_INT_T
	LBER_LEN_T
	LBER_SOCKET_T
	LBER_TAG_T
*/
68

69
70
71
72
73
74
/* define to character address type */
#undef caddr_t

/* define to signed size type */
#undef ssize_t

Kurt Zeilenga's avatar
Kurt Zeilenga committed
75
76

/* Leave that blank line there!!  Autoheader needs it. */
77
78

@BOTTOM@
79

80
81
/* begin of postamble */

82
83
#ifdef _WIN32
	/* don't suck in all of the win32 api */
84
#	define WIN32_LEAN_AND_MEAN 1
85
86
#endif

87
#ifndef __NEED_PROTOTYPES
88
/* force LDAP_P to always include prototypes */
89
#define __NEED_PROTOTYPES 1
90
91
#endif

92
93
94
95
#ifdef HAVE_STDDEF_H
#	include <stddef.h>
#endif

96
97
98
99
100
101
102
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
#define LDAP_TEST
#endif
#if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
#define LDAP_DEBUG
#endif

103
104
105
#include "ldap_cdefs.h"
#include "ldap_features.h"

106
107
#include "ac/assert.h"

108
#endif /* _LDAP_PORTABLE_H */