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_KBIND
57 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
60 /* These are defined in lber_types.h */
68 /* define to character address type */
71 /* define to signed size type */
75 /* Leave that blank line there!! Autoheader needs it. */
79 /* begin of postamble */
82 /* don't suck in all of the win32 api */
83 # define WIN32_LEAN_AND_MEAN 1
86 #ifndef __NEED_PROTOTYPES
87 /* force LDAP_P to always include prototypes */
88 #define __NEED_PROTOTYPES 1
95 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
98 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
102 #include "ldap_cdefs.h"
103 #include "ldap_features.h"
105 #include "ac/assert.h"
107 #endif /* _LDAP_PORTABLE_H */