Skip to content

Commit 907c677

Browse files
committed
fix placement of CHECK_LIBS test for kevent64
Need to run this check independent of the check for sys/event64 so that HAVE_KEVENT64 will be checked and defined on all platforms.
1 parent 3809a10 commit 907c677

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

configure.ac

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,12 @@ 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)
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])])]
140+
[PKG_CHECK_MODULES(KQUEUE, libkqueue)]
145141
)
146-
142+
AC_SEARCH_LIBS(kevent, kqueue)
143+
AC_SEARCH_LIBS(kevent64, kqueue,
144+
[AC_DEFINE(HAVE_KEVENT64, 1, [Define if kevent64 is present])],
145+
[AC_DEFINE(HAVE_KEVENT64, 0, [Define if kevent64 is present])])
147146

148147
#
149148
# Checks for header files.

0 commit comments

Comments
 (0)