]> git.sur5r.net Git - openldap/blobdiff - acconfig.h
Add support for -DOPENLDAP_FD_SETSIZE=N for use on Linux.
[openldap] / acconfig.h
index 700e49c93ed3c081a03fd0976859e60fd067a0ed..7c8889b6f41bceb1dfda1c0fcdda057641a2090e 100644 (file)
 #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"