From: Howard Chu Date: Sat, 14 May 2022 16:39:56 +0000 (+0100) Subject: ITS#9847 fix kqueue detection on MacOSX X-Git-Tag: OPENLDAP_REL_ENG_2_5_13~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59ae963bbf7452ccef7ded6275d40e74297af1da;p=thirdparty%2Fopenldap.git ITS#9847 fix kqueue detection on MacOSX --- diff --git a/configure.ac b/configure.ac index 63b192fdc3..15bca89511 100644 --- a/configure.ac +++ b/configure.ac @@ -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 +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +int main(int argc, char **argv) { int kqfd = kqueue(); exit (kqfd == -1 ? 1 : 0);