Skip to content

Commit 6293e78

Browse files
committed
kqueue check now also looks for kevent64 and sets config.h accordingly
1 parent 53a8aa6 commit 6293e78

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

configure.ac

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,14 @@ AC_SEARCH_LIBS(pthread_create, pthread)
137137
# Prefer native kqueue(2); otherwise use libkqueue if present.
138138
#
139139
AC_CHECK_HEADER(sys/event.h, [],
140-
[PKG_CHECK_MODULES(KQUEUE, libkqueue)]
140+
[PKG_CHECK_MODULES(KQUEUE, libkqueue)
141+
AC_SEARCH_LIBS(kevent, kqueue)
142+
AC_SEARCH_LIBS(kevent64, kqueue,
143+
[AC_DEFINE(HAVE_KEVENT64, 1, [Define if kevent64 is present])],
144+
[AC_DEFINE(HAVE_KEVENT64, 0, [Define if kevent64 is present])])]
141145
)
142146

147+
143148
#
144149
# Checks for header files.
145150
#

0 commit comments

Comments
 (0)