summaryrefslogtreecommitdiffstats
path: root/osdep-netbsd.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2010-12-30 20:41:08 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2010-12-30 20:41:08 +0000
commit436f3b357ee6a960621c319b7904aeed1cccead4 (patch)
treed5ef34bc8cc43d81c3582645b61724ca2200df47 /osdep-netbsd.c
parentba89a048edeebb34f03a46b5ecc789655f7d223d (diff)
epoll on Linux is broken with /dev/null so it needs to be disabled.
Instead of adding another BROKEN_* define, move event_init into osdep-*.c.
Diffstat (limited to 'osdep-netbsd.c')
-rw-r--r--osdep-netbsd.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/osdep-netbsd.c b/osdep-netbsd.c
index 97cb952f..e1fbfc2b 100644
--- a/osdep-netbsd.c
+++ b/osdep-netbsd.c
@@ -1,4 +1,4 @@
-/* $Id: osdep-netbsd.c,v 1.9 2009-09-24 12:30:22 nicm Exp $ */
+/* $Id: osdep-netbsd.c,v 1.10 2010-12-30 20:41:08 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -22,6 +22,7 @@
#include <sys/sysctl.h>
#include <errno.h>
+#include <event.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -33,6 +34,7 @@
struct kinfo_proc2 *cmp_procs(struct kinfo_proc2 *, struct kinfo_proc2 *);
char *osdep_get_name(int, char *);
+struct event_base *osdep_event_init(void);
struct kinfo_proc2 *
cmp_procs(struct kinfo_proc2 *p1, struct kinfo_proc2 *p2)
@@ -120,3 +122,9 @@ error:
free(buf);
return (NULL);
}
+
+struct event_base *
+osdep_event_init(void)
+{
+ return (event_init());
+}