mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#4674 fix poll detection
This commit is contained in:
parent
393e6e5ec0
commit
bd1f3a7d8d
@ -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 )
|
||||
|
@ -24,6 +24,9 @@
|
||||
#ifdef HAVE_POLL_H
|
||||
#include <poll.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_POLL_H
|
||||
#include <sys/poll.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user