mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#9847 fix kqueue detection on MacOSX
This commit is contained in:
parent
ced6652efb
commit
26e3721359
2 changed files with 16 additions and 2 deletions
9
configure
vendored
9
configure
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.ac Id: 675bdc74d151492f563c92ffde73705c0104feea .
|
# From configure.ac Id: a347593fe91b41b2a054a00420bbb35f39a0ec90 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.69.
|
# Generated by GNU Autoconf 2.69.
|
||||||
#
|
#
|
||||||
|
|
@ -16033,6 +16033,13 @@ $as_echo "no" >&6; }
|
||||||
else
|
else
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* 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 main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int kqfd = kqueue();
|
int kqfd = kqueue();
|
||||||
|
|
|
||||||
|
|
@ -1030,7 +1030,14 @@ dnl ----------------------------------------------------------------
|
||||||
AC_CHECK_HEADERS( sys/event.h )
|
AC_CHECK_HEADERS( sys/event.h )
|
||||||
if test "${ac_cv_header_sys_event_h}" = yes; then
|
if test "${ac_cv_header_sys_event_h}" = yes; then
|
||||||
AC_MSG_CHECKING(for kqueue system call)
|
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();
|
int kqfd = kqueue();
|
||||||
exit (kqfd == -1 ? 1 : 0);
|
exit (kqfd == -1 ? 1 : 0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue