Revision
159
Author
robert@fledge.watson.org
Date
2009-11-15 05:13:45 -0800 (Sun, 15 Nov 2009)

Log Message

Test for and support printing the name of EVFILT_LIO, a kqueue event source
implemented on FreeBSD but not Mac OS X.

Modified Paths

Diff

Modified: trunk/configure.ac (158 => 159)


--- trunk/configure.ac	2009-11-15 12:26:16 UTC (rev 158)
+++ trunk/configure.ac	2009-11-15 13:13:45 UTC (rev 159)
@@ -179,7 +179,7 @@
 #
 AC_CHECK_DECLS([CLOCK_UPTIME, CLOCK_MONOTONIC, CLOCK_REALTIME], [], [],
   [[#include <time.h>]])
-AC_CHECK_DECLS([EVFILT_SESSION, NOTE_NONE, NOTE_REAP, NOTE_SIGNAL], [], [],
+AC_CHECK_DECLS([EVFILT_LIO, EVFILT_SESSION, NOTE_NONE, NOTE_REAP, NOTE_SIGNAL], [], [],
   [[#include <sys/event.h>]])
 AC_CHECK_DECLS([FD_COPY], [], [], [[#include <sys/select.h>]])
 AC_CHECK_DECLS([SIGEMT], [], [], [[#include <signal.h>]])

Modified: trunk/src/source_kevent.c (158 => 159)


--- trunk/src/source_kevent.c	2009-11-15 12:26:16 UTC (rev 158)
+++ trunk/src/source_kevent.c	2009-11-15 13:13:45 UTC (rev 159)
@@ -101,6 +101,9 @@
 #if HAVE_DECL_EVFILT_SESSION
 	_evfilt2(EVFILT_SESSION);
 #endif
+#if HAVE_DECL_EVFILT_LIO
+	_evilt2(EVFILT_LIO);
+#endif
 
 	_evfilt2(DISPATCH_EVFILT_TIMER);
 	_evfilt2(DISPATCH_EVFILT_CUSTOM_ADD);