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
14 /* --------------------------------------------------- */
15 /* begin of WINNT specific entries */
17 #if defined(WINNT) || defined(_WIN32)
19 /* don't suck in all of the win32 api */
20 #define WIN32_LEAN_AND_MEAN
22 /* preprocess out undefined functions */
27 /* define undefined types */
28 #define ssize_t signed int
29 typedef char * caddr_t;
33 /* end of WINNT specific entries */
34 /* --------------------------------------------------- */
39 /* define this if needed to get reentrant functions */
47 /* define this if needed to get threadsafe functions */
61 #ifndef _SGI_MP_SOURCE
65 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
66 #undef GWINSZ_IN_SYS_IOCTL
68 /* These are defined in ldap_features.h */
70 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
71 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
72 LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
73 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
76 /* These are defined in lber_types.h */
85 /* Leave that blank line there!! Autoheader needs it. */
88 /* begin of postamble */
90 #ifndef __NEED_PROTOTYPES
91 /* force LDAP_P to always include prototypes */
92 #define __NEED_PROTOTYPES 1
99 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
102 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
106 #include "ldap_cdefs.h"
107 #include "ldap_features.h"
109 #include "ac/assert.h"
111 #endif /* _LDAP_PORTABLE_H */