Add support for -DOPENLDAP_FD_SETSIZE=N for use on Linux.

Works on BSD as well (equiv. to -DFD_SETSIZE=N).
This commit is contained in:
Kurt Zeilenga 2003-12-14 06:46:30 +00:00
parent d5936c1242
commit 9920e9fbf6
4 changed files with 967 additions and 884 deletions

View file

@ -113,6 +113,19 @@
#define vsprintf ber_pvt_vsprintf
#endif
#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
#include "ldap_cdefs.h"
#include "ldap_features.h"

1818
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -847,6 +847,7 @@ AC_CHECK_HEADERS( \
arpa/inet.h \
arpa/nameser.h \
assert.h \
bits/types.h \
conio.h \
crypt.h \
direct.h \

View file

@ -350,6 +350,9 @@
/* Define if you have the <assert.h> header file. */
#undef HAVE_ASSERT_H
/* Define if you have the <bits/types.h> header file. */
#undef HAVE_BITS_TYPES_H
/* Define if you have the <conio.h> header file. */
#undef HAVE_CONIO_H
@ -1022,6 +1025,9 @@
/* define for Proxy Cache overlay */
#undef SLAPD_OVER_PROXYCACHE
/* define for Rewrite/Remap overlay */
#undef SLAPD_OVER_RWM
/* define to enable rewriting in back-ldap and back-meta */
#undef ENABLE_REWRITE
@ -1067,6 +1073,19 @@
#define vsprintf ber_pvt_vsprintf
#endif
#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
#include "ldap_cdefs.h"
#include "ldap_features.h"