summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m411
1 files 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 <sys/ioctl.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <sys/poll.h>
#include <sys/devpoll.h>
],
[[
-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],