2 * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted only as authorized by the OpenLDAP
7 * Public License. A copy of this license is available at
8 * http://www.OpenLDAP.org/license.html or in file LICENSE in the
9 * top-level directory of the distribution.
12 #ifndef _LDAP_PORTABLE_H
13 #define _LDAP_PORTABLE_H
19 /* define this if needed to get reentrant functions */
27 /* define this if needed to get threadsafe functions */
41 #ifndef _SGI_MP_SOURCE
45 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
46 #undef GWINSZ_IN_SYS_IOCTL
48 /* These are defined in ldap_features.h */
50 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
51 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
52 LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
53 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
56 /* These are defined in lber_types.h */
64 /* define to character address type */
67 /* define to signed size type */
71 /* Leave that blank line there!! Autoheader needs it. */
75 /* begin of postamble */
78 /* don't suck in all of the win32 api */
79 # define WIN32_LEAN_AND_MEAN 1
82 #ifndef LDAP_NEEDS_PROTOTYPES
83 /* force LDAP_P to always include prototypes */
84 #define LDAP_NEEDS_PROTOTYPES 1
91 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
94 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
98 #include "ldap_cdefs.h"
99 #include "ldap_features.h"
101 #include "ac/assert.h"
103 #endif /* _LDAP_PORTABLE_H */