Commit bd1f3a7d authored by Howard Chu's avatar Howard Chu
Browse files

ITS#4674 fix poll detection

parent 393e6e5e
...@@ -950,7 +950,9 @@ dnl AC_SYS_RESTARTABLE_SYSCALLS ...@@ -950,7 +950,9 @@ dnl AC_SYS_RESTARTABLE_SYSCALLS
dnl ---------------------------------------------------------------- dnl ----------------------------------------------------------------
AC_CHECK_FUNCS( poll ) 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 ---------------------------------------------------------------- dnl ----------------------------------------------------------------
AC_CHECK_HEADERS( sys/epoll.h ) AC_CHECK_HEADERS( sys/epoll.h )
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
#ifdef HAVE_POLL_H #ifdef HAVE_POLL_H
#include <poll.h> #include <poll.h>
#endif #endif
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
...@@ -220,7 +223,7 @@ LDAP_LUTIL_F( int ) getpeereid( int s, uid_t *, gid_t * ); ...@@ -220,7 +223,7 @@ LDAP_LUTIL_F( int ) getpeereid( int s, uid_t *, gid_t * );
#define NI_MAXHOST 256 #define NI_MAXHOST 256
#endif #endif
#ifdef HAVE_POLL_H #ifdef HAVE_POLL
# ifndef INFTIM # ifndef INFTIM
# define INFTIM (-1) # define INFTIM (-1)
# endif # endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment