summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev.c2
-rw-r--r--libev.m46
2 files changed, 4 insertions, 4 deletions
diff --git a/ev.c b/ev.c
index 03da762..25e7d74 100644
--- a/ev.c
+++ b/ev.c
@@ -61,7 +61,7 @@ extern "C" {
# define EV_USE_KQUEUE 1
# endif
-# if HAVE_PORT_H && HAVE_PORT_H && HAVE_PORT_CREATE && !defined (EV_USE_PORT)
+# if HAVE_PORT_H && HAVE_PORT_CREATE && !defined (EV_USE_PORT)
# define EV_USE_PORT 1
# endif
diff --git a/libev.m4 b/libev.m4
index e6fe8fc..adb4578 100644
--- a/libev.m4
+++ b/libev.m4
@@ -2,16 +2,16 @@ dnl this file is part of libev, do not make local modifications
dnl http://software.schmorp.de/pkg/libev
dnl libev support
-AC_CHECK_HEADERS(sys/epoll.h sys/event.h sys/queue.h)
+AC_CHECK_HEADERS(sys/epoll.h sys/event.h sys/queue.h port.h)
-AC_CHECK_FUNCS(epoll_ctl kqueue)
+AC_CHECK_FUNCS(epoll_ctl kqueue port_create)
AC_CHECK_FUNC(clock_gettime, [], [
AC_CHECK_LIB(rt, clock_gettime)
AC_CHECK_FUNCS(clock_gettime)
])
-AC_CHECK_LIB(m,ceil)
+AC_CHECK_LIB(m, ceil)