acconfig.h 1.76 KB
Newer Older
1
2
3
4
5
6
7
8
9
/*
 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
 * 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
15
/* end of preamble */
@TOP@
16
17

/* define this if needed to get reentrant functions */
18
#ifndef REENTRANT
Kurt Zeilenga's avatar
Kurt Zeilenga committed
19
#undef REENTRANT
20
21
#endif
#ifndef _REENTRANT
22
#undef _REENTRANT
23
#endif
24
25

/* define this if needed to get threadsafe functions */
26
#ifndef THREADSAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
27
#undef THREADSAFE
28
29
#endif
#ifndef _THREADSAFE
30
#undef _THREADSAFE
31
32
#endif
#ifndef THREAD_SAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
33
#undef THREAD_SAFE
34
35
#endif
#ifndef _THREAD_SAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
36
#undef _THREAD_SAFE
37
#endif
38

39
40
41
42
#ifndef _SGI_MP_SOURCE
#undef _SGI_MP_SOURCE
#endif

43
44
45
/* define this if TIOCGWINSZ is defined in sys/ioctl.h */
#undef GWINSZ_IN_SYS_IOCTL

46
47
/* These are defined in ldap_features.h */
/*
48
49
	LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
	LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
50
51
52
	LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
	LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
*/
53

54
55
56
57
58
59
60
/* These are defined in lber_types.h */
/*
	LBER_INT_T
	LBER_LEN_T
	LBER_SOCKET_T
	LBER_TAG_T
*/
61

Kurt Zeilenga's avatar
Kurt Zeilenga committed
62
63

/* Leave that blank line there!!  Autoheader needs it. */
64
65
66
67

@BOTTOM@
/* begin of postamble */

68
69
70
71
72
#ifndef __NEEDS_PROTOTYPES
/* force LDAP_P to always include prototypes */
#define __NEEDS_PROTOTYPES 1
#endif

73
74
75
76
#ifdef HAVE_STDDEF_H
#	include <stddef.h>
#endif

77
78
79
80
81
82
83
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
#define LDAP_TEST
#endif
#if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
#define LDAP_DEBUG
#endif

84
85
86
#include "ldap_cdefs.h"
#include "ldap_features.h"

87
88
#include "ac/assert.h"

89
#endif /* _LDAP_PORTABLE_H */