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
16 #if !defined(SLAPD_SCHEMA_COMPAT) && !defined(SLAPD_SCHEMA_NOT_COMPAT)
17 /* define SLAPD_SCHEMA_COMPAT if you want old schema codes */
18 #define SLAPD_SCHEMA_NOT_COMPAT 1
23 /* define this if needed to get reentrant functions */
31 /* define this if needed to get threadsafe functions */
45 #ifndef _SGI_MP_SOURCE
49 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
50 #undef GWINSZ_IN_SYS_IOCTL
52 /* These are defined in ldap_features.h */
54 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
55 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
56 LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
57 LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
58 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
61 /* These are defined in lber_types.h */
69 /* define to character address type */
72 /* define to signed size type */
76 /* Leave that blank line there!! Autoheader needs it. */
80 /* begin of postamble */
83 /* don't suck in all of the win32 api */
84 # define WIN32_LEAN_AND_MEAN 1
87 #ifndef __NEED_PROTOTYPES
88 /* force LDAP_P to always include prototypes */
89 #define __NEED_PROTOTYPES 1
96 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
99 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
103 #include "ldap_cdefs.h"
104 #include "ldap_features.h"
106 #include "ac/assert.h"
108 #endif /* _LDAP_PORTABLE_H */