summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-08-19 08:36:45 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-08-19 08:36:45 +0000
commit3f7e2589cdc27b59499806caa4d945f5c808d360 (patch)
tree4ca69f41f7c026f6cf819ed918dbf51c13f1a2ac /client.c
parented26a1d3bb72636bc46d6b21f0309138868868fd (diff)
OS X stupid poll fix.
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.c b/client.c
index e4c5ac50..48cf35bf 100644
--- a/client.c
+++ b/client.c
@@ -1,4 +1,4 @@
-/* $Id: client.c,v 1.64 2009-08-14 21:26:07 tcunha Exp $ */
+/* $Id: client.c,v 1.65 2009-08-19 08:36:45 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -190,8 +190,10 @@ client_main(struct client_ctx *cctx)
if (nfds == 0)
continue;
+#ifdef HAVE_POLL
if (pfd.revents & (POLLERR|POLLHUP|POLLNVAL))
fatalx("socket error");
+#endif
if (pfd.revents & POLLIN) {
if (client_msg_dispatch(cctx) != 0)