diff --git a/configure.ac b/configure.ac index 0aba3709f..d371d408c 100644 --- a/configure.ac +++ b/configure.ac @@ -3537,6 +3537,26 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ) fi +AC_CHECK_MEMBERS([struct pollfd.fd], [], [], [[ +#include +#ifdef HAVE_POLL_H +#include +#endif +#ifdef HAVE_SYS_POLL_H +#include +#endif +]]) + +AC_CHECK_TYPES([nfds_t], , , [ +#include +#ifdef HAVE_POLL_H +#include +#endif +#ifdef HAVE_SYS_POLL_H +#include +#endif +]) + # Decide which sandbox style to use sandbox_arg="" AC_ARG_WITH([sandbox], @@ -3614,26 +3634,6 @@ else ) fi -AC_CHECK_MEMBERS([struct pollfd.fd], [], [], [[ -#include -#ifdef HAVE_POLL_H -#include -#endif -#ifdef HAVE_SYS_POLL_H -#include -#endif -]]) - -AC_CHECK_TYPES([nfds_t], , , [ -#include -#ifdef HAVE_POLL_H -#include -#endif -#ifdef HAVE_SYS_POLL_H -#include -#endif -]) - AC_MSG_CHECKING([if setrlimit(RLIMIT_NOFILE,{0,0}) works]) AC_RUN_IFELSE( [AC_LANG_PROGRAM([[