diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-06-07 19:26:17 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-06-07 19:26:17 +0200 |
commit | 799b0caaf244fa47b88023e45a41807a691f913b (patch) | |
tree | d686514f0622efc27dc3d39f24a39ae651966aa1 | |
parent | f21adaa6abbf1156f050a212f9feb0ba8256560e (diff) | |
download | weechat-799b0caaf244fa47b88023e45a41807a691f913b.zip |
fifo: ignore error ECOMM only on Cygwin (fix compilaton on FreeBSD)
-rw-r--r-- | src/plugins/fifo/fifo.c | 4 |
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, |