acconfig.h 2.02 KB
Newer Older
1
/*
Kurt Zeilenga's avatar
Kurt Zeilenga committed
2
 * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
3
4
 * All rights reserved.
 *
5
6
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted only as authorized by the OpenLDAP
Kurt Zeilenga's avatar
Kurt Zeilenga committed
7
 * Public License.  A copy of this license is available at
8
9
 * http://www.OpenLDAP.org/license.html or in file LICENSE in the
 * top-level directory of the distribution.
10
 */
Kurt Zeilenga's avatar
Kurt Zeilenga committed
11

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

15
/* end of preamble */
16

17
@TOP@
18
19

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

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

41
42
43
44
#ifndef _SGI_MP_SOURCE
#undef _SGI_MP_SOURCE
#endif

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

48
49
/* These are defined in ldap_features.h */
/*
50
51
	LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
	LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
52
	LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
53
54
	LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
*/
55

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

64
65
66
67
68
69
/* define to character address type */
#undef caddr_t

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

Kurt Zeilenga's avatar
Kurt Zeilenga committed
70
71

/* Leave that blank line there!!  Autoheader needs it. */
72
73

@BOTTOM@
74

75
76
/* begin of postamble */

77
78
#ifdef _WIN32
	/* don't suck in all of the win32 api */
79
#	define WIN32_LEAN_AND_MEAN 1
80
81

#	define sleep _sleep
82
83
#endif

84
#ifndef LDAP_NEEDS_PROTOTYPES
85
/* force LDAP_P to always include prototypes */
86
#define LDAP_NEEDS_PROTOTYPES 1
87
88
#endif

89
90
91
92
#ifdef HAVE_STDDEF_H
#	include <stddef.h>
#endif

93
94
95
96
97
98
99
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
#define LDAP_TEST
#endif
#if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
#define LDAP_DEBUG
#endif

100
101
102
#include "ldap_cdefs.h"
#include "ldap_features.h"

103
104
#include "ac/assert.h"

105
#endif /* _LDAP_PORTABLE_H */