2 * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
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.
11 #ifndef _LDAP_PORTABLE_H
12 #define _LDAP_PORTABLE_H
18 /* define this if needed to get reentrant functions */
26 /* define this if needed to get threadsafe functions */
40 #ifndef _SGI_MP_SOURCE
44 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
45 #undef GWINSZ_IN_SYS_IOCTL
47 /* These are defined in ldap_features.h */
49 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
50 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
51 LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
52 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
55 /* These are defined in lber_types.h */
63 /* define to character address type */
66 /* define to signed size type */
70 /* Leave that blank line there!! Autoheader needs it. */
74 /* begin of postamble */
77 /* don't suck in all of the win32 api */
78 # define WIN32_LEAN_AND_MEAN 1
81 #ifndef LDAP_NEEDS_PROTOTYPES
82 /* force LDAP_P to always include prototypes */
83 #define LDAP_NEEDS_PROTOTYPES 1
90 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
93 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
97 #include "ldap_cdefs.h"
98 #include "ldap_features.h"
100 #include "ac/assert.h"
102 #endif /* _LDAP_PORTABLE_H */