2003-11-25 23:17:25 -05:00
|
|
|
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
|
|
*
|
2004-01-01 14:15:16 -05:00
|
|
|
|
* Copyright 1998-2004 The OpenLDAP Foundation
|
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
|
2003-11-25 21:58:56 -05:00
|
|
|
|
* Public License.
|
|
|
|
|
|
*
|
|
|
|
|
|
* A copy of this license is available in the file LICENSE in the
|
|
|
|
|
|
* top-level directory of the distribution or, alternatively, at
|
|
|
|
|
|
* <http://www.OpenLDAP.org/license.html>.
|
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
|
|
|
|
|
|
|
2003-02-08 16:53:05 -05:00
|
|
|
|
#ifndef LDAP_REL_ENG
|
|
|
|
|
|
#if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL)
|
|
|
|
|
|
#define LDAP_DEVEL
|
|
|
|
|
|
#endif
|
1999-03-19 22:21:19 -05:00
|
|
|
|
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
|
|
|
|
|
|
#define LDAP_TEST
|
|
|
|
|
|
#endif
|
2003-02-08 16:53:05 -05:00
|
|
|
|
#endif
|
1999-03-19 22:21:19 -05:00
|
|
|
|
|
2003-12-15 20:58:15 -05:00
|
|
|
|
#ifdef HAVE_STDDEF_H
|
|
|
|
|
|
# include <stddef.h>
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
2002-09-07 10:05:17 -04: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-09 20:47:32 -04: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 10:05:17 -04:00
|
|
|
|
#endif
|
|
|
|
|
|
|
2003-12-14 01:46:30 -05:00
|
|
|
|
#ifdef OPENLDAP_FD_SETSIZE
|
|
|
|
|
|
/* assume installer desires to enlarge fd_set */
|
|
|
|
|
|
#ifdef HAVE_BITS_TYPES_H
|
|
|
|
|
|
#include <bits/types.h>
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#ifdef __FD_SETSIZE
|
|
|
|
|
|
#undef __FD_SETSIZE
|
|
|
|
|
|
#define __FD_SETSIZE OPENLDAP_FD_SETSIZE
|
|
|
|
|
|
#else
|
|
|
|
|
|
#define FD_SETSIZE OPENLDAP_FD_SETSIZE
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#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"
|
2003-04-07 18:44:15 -04:00
|
|
|
|
#include "ac/localize.h"
|
1999-03-19 22:21:19 -05:00
|
|
|
|
|
1999-02-02 20:05:41 -05:00
|
|
|
|
#endif /* _LDAP_PORTABLE_H */
|