mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#9847 fix kqueue detection on MacOSX
This commit is contained in:
parent
1ec2d8ae21
commit
b37bcadf2e
1 changed files with 8 additions and 1 deletions
|
|
@ -1016,7 +1016,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue