1999-02-03 09:05:41 +08:00
|
|
|
|
/*
|
2002-01-05 05:17:25 +08:00
|
|
|
|
* Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
|
1999-02-03 09:05:41 +08:00
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
2001-05-29 11:29:53 +08:00
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
|
* modification, are permitted only as authorized by the OpenLDAP
|
2001-10-25 00:56:21 +08:00
|
|
|
|
* Public License. A copy of this license is available at
|
2001-05-29 11:29:53 +08:00
|
|
|
|
* http://www.OpenLDAP.org/license.html or in file LICENSE in the
|
|
|
|
|
* top-level directory of the distribution.
|
1999-02-03 09:05:41 +08:00
|
|
|
|
*/
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
1999-02-03 09:05:41 +08:00
|
|
|
|
#ifndef _LDAP_PORTABLE_H
|
|
|
|
|
#define _LDAP_PORTABLE_H
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
1999-02-03 09:05:41 +08:00
|
|
|
|
/* end of preamble */
|
1999-11-02 02:14:26 +08:00
|
|
|
|
|
1999-02-03 09:05:41 +08:00
|
|
|
|
@TOP@
|
1998-11-05 14:11:47 +08:00
|
|
|
|
|
|
|
|
|
/* define this if needed to get reentrant functions */
|
1999-01-10 10:25:41 +08:00
|
|
|
|
#ifndef REENTRANT
|
1998-12-01 04:40:42 +08:00
|
|
|
|
#undef REENTRANT
|
1999-01-10 10:25:41 +08:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef _REENTRANT
|
1998-11-05 14:11:47 +08:00
|
|
|
|
#undef _REENTRANT
|
1999-01-10 10:25:41 +08:00
|
|
|
|
#endif
|
1998-11-05 14:11:47 +08:00
|
|
|
|
|
|
|
|
|
/* define this if needed to get threadsafe functions */
|
1999-01-10 10:25:41 +08:00
|
|
|
|
#ifndef THREADSAFE
|
1998-12-01 04:40:42 +08:00
|
|
|
|
#undef THREADSAFE
|
1999-01-10 10:25:41 +08:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef _THREADSAFE
|
1998-11-11 08:24:22 +08:00
|
|
|
|
#undef _THREADSAFE
|
1999-01-10 10:25:41 +08:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef THREAD_SAFE
|
1998-12-01 04:40:42 +08:00
|
|
|
|
#undef THREAD_SAFE
|
1999-01-10 10:25:41 +08:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef _THREAD_SAFE
|
1998-12-01 04:40:42 +08:00
|
|
|
|
#undef _THREAD_SAFE
|
1999-01-10 10:25:41 +08:00
|
|
|
|
#endif
|
1998-11-11 08:24:22 +08:00
|
|
|
|
|
1999-06-11 08:07:10 +08:00
|
|
|
|
#ifndef _SGI_MP_SOURCE
|
|
|
|
|
#undef _SGI_MP_SOURCE
|
|
|
|
|
#endif
|
|
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
|
/* define this if TIOCGWINSZ is defined in sys/ioctl.h */
|
|
|
|
|
#undef GWINSZ_IN_SYS_IOCTL
|
|
|
|
|
|
1998-11-10 03:41:09 +08:00
|
|
|
|
/* These are defined in ldap_features.h */
|
|
|
|
|
/*
|
1998-12-20 08:58:55 +08:00
|
|
|
|
LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
|
|
|
|
|
LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
|
2000-01-09 02:42:11 +08:00
|
|
|
|
LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
|
1998-11-10 03:41:09 +08:00
|
|
|
|
LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
|
|
|
|
|
*/
|
1999-07-24 05:10:02 +08:00
|
|
|
|
|
1999-06-19 07:53:05 +08:00
|
|
|
|
/* These are defined in lber_types.h */
|
|
|
|
|
/*
|
|
|
|
|
LBER_INT_T
|
|
|
|
|
LBER_LEN_T
|
|
|
|
|
LBER_SOCKET_T
|
|
|
|
|
LBER_TAG_T
|
|
|
|
|
*/
|
1998-11-10 03:41:09 +08:00
|
|
|
|
|
1999-11-02 02:14:26 +08:00
|
|
|
|
/* define to character address type */
|
|
|
|
|
#undef caddr_t
|
|
|
|
|
|
|
|
|
|
/* define to signed size type */
|
|
|
|
|
#undef ssize_t
|
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
|
|
/* Leave that blank line there!! Autoheader needs it. */
|
1999-02-03 09:05:41 +08:00
|
|
|
|
|
|
|
|
|
@BOTTOM@
|
1999-11-02 02:14:26 +08:00
|
|
|
|
|
1999-02-03 09:05:41 +08:00
|
|
|
|
/* begin of postamble */
|
|
|
|
|
|
1999-11-02 02:14:26 +08:00
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
/* don't suck in all of the win32 api */
|
1999-11-02 06:06:00 +08:00
|
|
|
|
# define WIN32_LEAN_AND_MEAN 1
|
1999-11-02 02:14:26 +08:00
|
|
|
|
#endif
|
|
|
|
|
|
2000-06-20 06:20:36 +08:00
|
|
|
|
#ifndef LDAP_NEEDS_PROTOTYPES
|
1999-08-24 08:27:53 +08:00
|
|
|
|
/* force LDAP_P to always include prototypes */
|
2000-06-20 06:20:36 +08:00
|
|
|
|
#define LDAP_NEEDS_PROTOTYPES 1
|
1999-08-24 08:27:53 +08:00
|
|
|
|
#endif
|
|
|
|
|
|
1999-02-03 09:05:41 +08:00
|
|
|
|
#ifdef HAVE_STDDEF_H
|
|
|
|
|
# include <stddef.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
1999-03-20 11:21:19 +08:00
|
|
|
|
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
|
|
|
|
|
#define LDAP_TEST
|
|
|
|
|
#endif
|
|
|
|
|
#if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
|
|
|
|
|
#define LDAP_DEBUG
|
|
|
|
|
#endif
|
|
|
|
|
|
1999-02-03 09:05:41 +08:00
|
|
|
|
#include "ldap_cdefs.h"
|
|
|
|
|
#include "ldap_features.h"
|
|
|
|
|
|
1999-03-20 11:21:19 +08:00
|
|
|
|
#include "ac/assert.h"
|
|
|
|
|
|
1999-02-03 09:05:41 +08:00
|
|
|
|
#endif /* _LDAP_PORTABLE_H */
|