1999-02-03 09:05:41 +08:00
|
|
|
|
/*
|
2003-01-04 04:20:47 +08:00
|
|
|
|
* Copyright 1998-2003 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
|
|
|
|
|
|
2003-02-09 05:53:05 +08:00
|
|
|
|
#ifndef LDAP_REL_ENG
|
|
|
|
|
#if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL)
|
|
|
|
|
#define LDAP_DEVEL
|
|
|
|
|
#endif
|
1999-03-20 11:21:19 +08:00
|
|
|
|
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
|
|
|
|
|
#define LDAP_TEST
|
|
|
|
|
#endif
|
2003-02-09 05:53:05 +08:00
|
|
|
|
#endif
|
1999-03-20 11:21:19 +08:00
|
|
|
|
|
2002-09-07 22:05:17 +08:00
|
|
|
|
#ifdef HAVE_EBCDIC
|
|
|
|
|
/* ASCII/EBCDIC converting replacements for stdio funcs
|
|
|
|
|
* vsnprintf and snprintf are used too, but they are already
|
|
|
|
|
* checked by the configure script
|
|
|
|
|
*/
|
2002-09-10 08:47:32 +08:00
|
|
|
|
#define fputs ber_pvt_fputs
|
|
|
|
|
#define fgets ber_pvt_fgets
|
|
|
|
|
#define printf ber_pvt_printf
|
|
|
|
|
#define fprintf ber_pvt_fprintf
|
|
|
|
|
#define vfprintf ber_pvt_vfprintf
|
|
|
|
|
#define vsprintf ber_pvt_vsprintf
|
2002-09-07 22:05:17 +08:00
|
|
|
|
#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"
|
2003-04-08 06:44:15 +08:00
|
|
|
|
#include "ac/localize.h"
|
1999-03-20 11:21:19 +08:00
|
|
|
|
|
1999-02-03 09:05:41 +08:00
|
|
|
|
#endif /* _LDAP_PORTABLE_H */
|