]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9847 fix kqueue detection on MacOSX
authorHoward Chu <hyc@openldap.org>
Sat, 14 May 2022 16:39:56 +0000 (17:39 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 16 May 2022 15:07:42 +0000 (15:07 +0000)
configure.ac

index 63b192fdc3ddaf2eabc322c60cd7066c9252e1d8..15bca89511fc428731cf9ab71a9b46e37511be67 100644 (file)
@@ -1022,7 +1022,14 @@ dnl ----------------------------------------------------------------
 AC_CHECK_HEADERS( sys/event.h )
 if test "${ac_cv_header_sys_event_h}" = yes; then
 AC_MSG_CHECKING(for kqueue system call)
-AC_RUN_IFELSE([AC_LANG_SOURCE([[int main(int argc, char **argv)
+AC_RUN_IFELSE([AC_LANG_SOURCE([[$ac_includes_default
+#ifdef HAVE_SYS_EVENT_H
+#include <sys/event.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+int main(int argc, char **argv)
 {
        int kqfd = kqueue();
        exit (kqfd == -1 ? 1 : 0);