]> 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)
committerHoward Chu <hyc@openldap.org>
Sat, 14 May 2022 16:40:37 +0000 (17:40 +0100)
configure
configure.ac

index c794eaa0c6d269b77f9d7b2b029f094c5f62729f..8b2320d74944b8eccb9afd7f85a5f40d52c5ac87 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Id: 675bdc74d151492f563c92ffde73705c0104feea .
+# From configure.ac Id: a347593fe91b41b2a054a00420bbb35f39a0ec90 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.69.
 #
@@ -16033,6 +16033,13 @@ $as_echo "no" >&6; }
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+$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();
index a347593fe91b41b2a054a00420bbb35f39a0ec90..c9c29784498525cc1cf6b301013e1ea4baa8b8c8 100644 (file)
@@ -1030,7 +1030,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);