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 */
19 /* don't suck in all of the win32 api */
20 #define WIN32_LEAN_AND_MEAN
22 /* WindowsNT specific features */
23 #define HAVE_NT_SERVICE_MANAGER 1
24 #define HAVE_NT_EVENT_LOG 1
26 #define MAXPATHLEN _MAX_PATH
28 /* preprocess out undefined functions */
33 /* define undefined types */
34 #define ssize_t signed int
35 typedef char * caddr_t;
39 /* end of WINNT specific entries */
40 /* --------------------------------------------------- */
45 /* define this if needed to get reentrant functions */
53 /* define this if needed to get threadsafe functions */
67 #ifndef _SGI_MP_SOURCE
71 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
72 #undef GWINSZ_IN_SYS_IOCTL
74 /* These are defined in ldap_features.h */
76 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
77 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
78 LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
79 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
82 /* These are defined in lber_types.h */
91 /* Leave that blank line there!! Autoheader needs it. */
94 /* begin of postamble */
96 #ifndef __NEED_PROTOTYPES
97 /* force LDAP_P to always include prototypes */
98 #define __NEED_PROTOTYPES 1
105 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
108 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
112 #include "ldap_cdefs.h"
113 #include "ldap_features.h"
115 #include "ac/assert.h"
117 #endif /* _LDAP_PORTABLE_H */