--- asterisk-1.4.39-rc1/configure.ac.orig 2011-01-09 12:46:51.000000000 -0600 +++ asterisk-1.4.39-rc1/configure.ac 2011-01-09 12:48:28.000000000 -0600 @@ -485,40 +485,6 @@ AC_MSG_RESULT(cross-compile) ) -ac_cv_have_variable_fdset=0 -AC_MSG_CHECKING(if we can increase the maximum select-able file descriptor) -AC_RUN_IFELSE( -AC_LANG_PROGRAM([ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -], [[ - struct rlimit rlim = { FD_SETSIZE + 2, FD_SETSIZE + 2 }; - int fd[[2]]; - struct timeval tv = { 0, }; - struct ast_fdset { long fds_bits[[1024]]; } fds = { { 0, } }; - if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); } - if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); } - if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); } - FD_SET(fd[[0]], (fd_set *) &fds); - FD_SET(fd[[1]], (fd_set *) &fds); - if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); } - exit(0)]]), - AC_MSG_RESULT(yes) - ac_cv_have_variable_fdset=1 - AC_DEFINE([HAVE_VARIABLE_FDSET], 1, [Define to 1 if your system can support larger than default select bitmasks.]), - AC_MSG_RESULT(no), - AC_MSG_RESULT(cross-compile) -) - if test "${ac_cv_have_variable_fdset}x" = "0x"; then AC_RUN_IFELSE( AC_LANG_PROGRAM([