summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-06-07 19:26:17 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-06-07 19:26:17 +0200
commit799b0caaf244fa47b88023e45a41807a691f913b (patch)
treed686514f0622efc27dc3d39f24a39ae651966aa1
parentf21adaa6abbf1156f050a212f9feb0ba8256560e (diff)
downloadweechat-799b0caaf244fa47b88023e45a41807a691f913b.zip
fifo: ignore error ECOMM only on Cygwin (fix compilaton on FreeBSD)
-rw-r--r--src/plugins/fifo/fifo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/fifo/fifo.c b/src/plugins/fifo/fifo.c
index cc10a90a1..8694b57c8 100644
--- a/src/plugins/fifo/fifo.c
+++ b/src/plugins/fifo/fifo.c
@@ -357,7 +357,11 @@ fifo_read (void *data, int fd)
{
if (num_read < 0)
{
+#ifdef __CYGWIN__
if ((errno == EAGAIN) || (errno == ECOMM))
+#else
+ if (errno == EAGAIN)
+#endif /* __CYGWIN__ */
return WEECHAT_RC_OK;
weechat_printf (NULL,