mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
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:
parent
d5936c1242
commit
9920e9fbf6
4 changed files with 967 additions and 884 deletions
13
acconfig.h
13
acconfig.h
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -847,6 +847,7 @@ AC_CHECK_HEADERS( \
|
|||
arpa/inet.h \
|
||||
arpa/nameser.h \
|
||||
assert.h \
|
||||
bits/types.h \
|
||||
conio.h \
|
||||
crypt.h \
|
||||
direct.h \
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue