aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-08-19 09:00:06 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-08-19 09:00:06 +0000
commit620402a833a4e42590a26390d2b7a39fd39e3ea9 (patch)
treee51054af412411f92f070c5cdc5b4fa53c79e1a0 /tty.c
parent3f7e2589cdc27b59499806caa4d945f5c808d360 (diff)
downloadrtmux-620402a833a4e42590a26390d2b7a39fd39e3ea9.tar.gz
rtmux-620402a833a4e42590a26390d2b7a39fd39e3ea9.tar.bz2
rtmux-620402a833a4e42590a26390d2b7a39fd39e3ea9.zip
This is a better fix for OS X stupidity.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tty.c b/tty.c
index 2047fbe1..ef47391c 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.128 2009-08-16 19:31:37 tcunha Exp $ */
+/* $Id: tty.c,v 1.129 2009-08-19 09:00:06 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -252,10 +252,8 @@ tty_detect_utf8(struct tty *tty)
}
if (nfds == 0)
break;
-#ifdef HAVE_POLL
if (pfd.revents & (POLLERR|POLLNVAL|POLLHUP))
break;
-#endif
if (!(pfd.revents & POLLIN))
continue;