From dcc894ec6fb46f0c4739434f8013914b8a6f8a88 Mon Sep 17 00:00:00 2001 From: Gabriele Svelto Date: Sat, 7 Apr 2012 23:04:14 +0200 Subject: Fix /dev/poll detection on Solaris The /dev/poll facility wasn't correctly recognized because of a missing header. The check was fixed and overhauled in the process. Signed-off-by: Gabriele Svelto --- acinclude.m4 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index a1c1cbe..169c786 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -651,11 +651,18 @@ AC_DEFUN([LIBXS_CHECK_POLLER_DEVPOLL], [{ AC_LINK_IFELSE( [AC_LANG_PROGRAM( [ +#include +#include +#include +#include #include ], [[ -struct pollfd t_devpoll; -int fd = open("/dev/poll", O_RDWR); +struct dvpoll p; +p.dp_timeout = 0; +p.dp_nfds = 0; +p.dp_fds = (struct pollfd *) 0; +return 0; ]] )], [libxs_cv_have_poller_devpoll="yes" ; $1], -- cgit v1.2.3