summaryrefslogtreecommitdiff
path: root/libraries/base/configure.ac
diff options
context:
space:
mode:
authorIku Iwasa <iku.iwasa@gmail.com>2012-09-16 16:36:25 +0900
committerSimon Marlow <marlowsd@gmail.com>2012-10-04 16:06:41 +0100
commit4aa8bc19c7293f9740e2c826e53fb6ce1a36c834 (patch)
treef01b27afab080a9062c18ebb14abc2c64c682855 /libraries/base/configure.ac
parent0978d64034da39c31f1e3d040807747581fe8c52 (diff)
downloadhaskell-4aa8bc19c7293f9740e2c826e53fb6ce1a36c834.tar.gz
Adapt to NetBSD's struct kevent
Diffstat (limited to 'libraries/base/configure.ac')
-rw-r--r--libraries/base/configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/libraries/base/configure.ac b/libraries/base/configure.ac
index 0ce53b78ec..b6795205bd 100644
--- a/libraries/base/configure.ac
+++ b/libraries/base/configure.ac
@@ -51,6 +51,12 @@ fi
if test "$ac_cv_header_sys_event_h" = yes -a "$ac_cv_func_kqueue" = yes; then
AC_DEFINE([HAVE_KQUEUE], [1], [Define if you have kqueue support.])
+
+ AC_CHECK_SIZEOF([kev.filter], [], [#include <sys/event.h>
+struct kevent kev;])
+
+ AC_CHECK_SIZEOF([kev.flags], [], [#include <sys/event.h>
+struct kevent kev;])
fi
if test "$ac_cv_header_poll_h" = yes -a "$ac_cv_func_poll" = yes; then