summaryrefslogtreecommitdiffstats
path: root/osdep-sunos.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-sunos.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-sunos.c')
-rw-r--r--osdep-sunos.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/osdep-sunos.c b/osdep-sunos.c
index d2681d04..6c865168 100644
--- a/osdep-sunos.c
+++ b/osdep-sunos.c
@@ -1,4 +1,4 @@
-/* $Id: osdep-sunos.c,v 1.2 2009-10-15 07:11:25 nicm Exp $ */
+/* $Id: osdep-sunos.c,v 1.3 2010-12-30 20:41:08 nicm Exp $ */
/*
* Copyright (c) 2009 Todd Carson <toc@daybefore.net>
@@ -19,6 +19,7 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include <event.h>
#include <fcntl.h>
#include <procfs.h>
#include <stdio.h>
@@ -63,3 +64,9 @@ osdep_get_name(int fd, char *tty)
return (xstrdup(p.pr_fname));
}
+
+struct event_base *
+osdep_event_init(void)
+{
+ return (event_init());
+}