acconfig.h 2.24 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
16
/* --------------------------------------------------- */
/* begin of WINNT specific entries */

17
#if defined(WINNT) || defined(_WIN32)
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

/* don't suck in all of the win32 api */
#define WIN32_LEAN_AND_MEAN

/* preprocess out undefined functions */
#define LOG_DEBUG 0
#define openlog(a, b)
#define closelog()

/* define undefined types */
#define ssize_t signed int
typedef char * caddr_t;

#endif

/* end of WINNT specific entries */
/* --------------------------------------------------- */

36
37
/* end of preamble */
@TOP@
38
39

/* define this if needed to get reentrant functions */
40
#ifndef REENTRANT
Kurt Zeilenga's avatar
Kurt Zeilenga committed
41
#undef REENTRANT
42
43
#endif
#ifndef _REENTRANT
44
#undef _REENTRANT
45
#endif
46
47

/* define this if needed to get threadsafe functions */
48
#ifndef THREADSAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
49
#undef THREADSAFE
50
51
#endif
#ifndef _THREADSAFE
52
#undef _THREADSAFE
53
54
#endif
#ifndef THREAD_SAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
55
#undef THREAD_SAFE
56
57
#endif
#ifndef _THREAD_SAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
58
#undef _THREAD_SAFE
59
#endif
60

61
62
63
64
#ifndef _SGI_MP_SOURCE
#undef _SGI_MP_SOURCE
#endif

65
66
67
/* define this if TIOCGWINSZ is defined in sys/ioctl.h */
#undef GWINSZ_IN_SYS_IOCTL

68
69
/* These are defined in ldap_features.h */
/*
70
71
	LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
	LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
72
73
74
	LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
	LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
*/
75

76
77
78
79
80
81
82
/* These are defined in lber_types.h */
/*
	LBER_INT_T
	LBER_LEN_T
	LBER_SOCKET_T
	LBER_TAG_T
*/
83

Kurt Zeilenga's avatar
Kurt Zeilenga committed
84
85

/* Leave that blank line there!!  Autoheader needs it. */
86
87
88
89

@BOTTOM@
/* begin of postamble */

90
#ifndef __NEED_PROTOTYPES
91
/* force LDAP_P to always include prototypes */
92
#define __NEED_PROTOTYPES 1
93
94
#endif

95
96
97
98
#ifdef HAVE_STDDEF_H
#	include <stddef.h>
#endif

99
100
101
102
103
104
105
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
#define LDAP_TEST
#endif
#if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
#define LDAP_DEBUG
#endif

106
107
108
#include "ldap_cdefs.h"
#include "ldap_features.h"

109
110
#include "ac/assert.h"

111
#endif /* _LDAP_PORTABLE_H */