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.
This commit is contained in:
Nicholas Marriott
2010-12-30 20:41:08 +00:00
parent ba89a048ed
commit 436f3b357e
10 changed files with 87 additions and 34 deletions

View File

@ -1,4 +1,4 @@
/* $Id: osdep-unknown.c,v 1.5 2009-04-29 23:07:35 nicm Exp $ */
/* $Id: osdep-unknown.c,v 1.6 2010-12-30 20:41:08 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@ -18,6 +18,8 @@
#include <sys/types.h>
#include <event.h>
#include "tmux.h"
char *
@ -25,3 +27,9 @@ osdep_get_name(unused int fd, unused char *tty)
{
return (NULL);
}
struct event_base *
osdep_event_init(void)
{
return (event_init());
}