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