From: Howard Chu Date: Thu, 21 Sep 2006 17:54:37 +0000 (+0000) Subject: ITS#4674 fix poll detection X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~110 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd1f3a7d8d1c841950b5f59967f4f0937a70284a;p=openldap ITS#4674 fix poll detection --- diff --git a/configure.in b/configure.in index ea88615fae..118a568f0d 100644 --- a/configure.in +++ b/configure.in @@ -950,7 +950,9 @@ dnl AC_SYS_RESTARTABLE_SYSCALLS dnl ---------------------------------------------------------------- AC_CHECK_FUNCS( poll ) -AC_CHECK_HEADERS( poll.h ) +if test $ac_cv_func_poll = yes; then +AC_CHECK_HEADERS( poll.h sys/poll.h ) +fi dnl ---------------------------------------------------------------- AC_CHECK_HEADERS( sys/epoll.h ) diff --git a/include/ac/socket.h b/include/ac/socket.h index 8522f76f90..4f2ed14812 100644 --- a/include/ac/socket.h +++ b/include/ac/socket.h @@ -24,6 +24,9 @@ #ifdef HAVE_POLL_H #include #endif +#ifdef HAVE_SYS_POLL_H +#include +#endif #ifdef HAVE_SYS_SOCKET_H #include @@ -220,7 +223,7 @@ LDAP_LUTIL_F( int ) getpeereid( int s, uid_t *, gid_t * ); #define NI_MAXHOST 256 #endif -#ifdef HAVE_POLL_H +#ifdef HAVE_POLL # ifndef INFTIM # define INFTIM (-1) # endif