Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/net/lib/libshmif Use kqueue on *BSD, not just NetBSD.



details:   https://anonhg.NetBSD.org/src/rev/4bd5eae137f9
branches:  trunk
changeset: 787810:4bd5eae137f9
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Jul 04 17:46:14 2013 +0000

description:
Use kqueue on *BSD, not just NetBSD.

diffstat:

 sys/rump/net/lib/libshmif/rumpcomp_user.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 103ec2b863f2 -r 4bd5eae137f9 sys/rump/net/lib/libshmif/rumpcomp_user.c
--- a/sys/rump/net/lib/libshmif/rumpcomp_user.c Thu Jul 04 11:58:11 2013 +0000
+++ b/sys/rump/net/lib/libshmif/rumpcomp_user.c Thu Jul 04 17:46:14 2013 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpcomp_user.c,v 1.12 2013/06/04 14:54:34 pooka Exp $        */
+/*      $NetBSD: rumpcomp_user.c,v 1.13 2013/07/04 17:46:14 pooka Exp $        */
 
 /*-
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -37,14 +37,16 @@
 #define seterr(_v_) if ((_v_) == -1) *error = errno; else *error = 0;
 
 /*
- * On NetBSD we use kqueue, on Linux we use inotify.  The underlying
+ * On BSD we use kqueue, on Linux we use inotify.  The underlying
  * interface requirements aren't quite the same, but we have a very
  * good chance of doing the fd->path mapping on Linux thanks to dcache,
  * so just keep the existing interfaces for now.
  */
-#if defined(__NetBSD__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
 #include <sys/event.h>
 
+#include <stdlib.h>
+
 int
 rumpcomp_shmif_watchsetup(int *kqp, int fd)
 {



Home | Main Index | Thread Index | Old Index