Debug( LDAP_DEBUG_TRACE, "do_ldap_select\n", 0, 0, 0 );
if ( tblsize == 0 ) {
+#ifdef FD_SETSIZE
+ /*
+ * It is invalid to use a set size in excess of the type
+ * scope, as defined for the fd_set in sys/types.h. This
+ * is true for any OS.
+ */
+ tblsize = FD_SETSIZE;
+#else /* !FD_SETSIZE*/
#ifdef USE_SYSCONF
tblsize = sysconf( _SC_OPEN_MAX );
#else /* USE_SYSCONF */
tblsize = getdtablesize();
#endif
#endif /* USE_SYSCONF */
+#endif /* !FD_SETSIZE*/
}
sip = (struct selectinfo *)ld->ld_selectinfo;