Skip to content
Snippets Groups Projects
Commit 9920e9fb authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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

Works on BSD as well (equiv. to -DFD_SETSIZE=N).
parent d5936c12
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
This diff is collapsed.
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment