2 * Copyright 1998,1999 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
17 /* define this if needed to get reentrant functions */
25 /* define this if needed to get threadsafe functions */
39 #ifndef _SGI_MP_SOURCE
43 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
44 #undef GWINSZ_IN_SYS_IOCTL
46 /* These are defined in ldap_features.h */
48 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
49 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
50 LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
51 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
54 /* These are defined in lber_types.h */
63 /* Leave that blank line there!! Autoheader needs it. */
66 /* begin of postamble */
68 #ifndef __NEEDS_PROTOTYPES
69 /* force LDAP_P to always include prototypes */
70 #define __NEEDS_PROTOTYPES 1
77 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
80 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
84 #include "ldap_cdefs.h"
85 #include "ldap_features.h"
87 #include "ac/assert.h"
89 #endif /* _LDAP_PORTABLE_H */