From: Guus Sliepen Date: Tue, 14 Nov 2006 12:28:04 +0000 (+0000) Subject: EWOULDBLOCK does not exist on platforms without O_NONBLOCK X-Git-Tag: release-1.0.5~1 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=e5b1b5cefb82531e8a700c2ee251da1bb0a06fbf EWOULDBLOCK does not exist on platforms without O_NONBLOCK --- diff --git a/src/meta.c b/src/meta.c index 76938276..a32d4137 100644 --- a/src/meta.c +++ b/src/meta.c @@ -94,10 +94,12 @@ bool flush_meta(connection_t *c) c->name, c->hostname); } else if(errno == EINTR) { continue; +#ifdef EWOULDBLOCK } else if(errno == EWOULDBLOCK) { ifdebug(CONNECTIONS) logger(LOG_DEBUG, _("Flushing %d bytes to %s (%s) would block"), c->outbuflen, c->name, c->hostname); return true; +#endif } else { logger(LOG_ERR, _("Flushing meta data to %s (%s) failed: %s"), c->name, c->hostname, strerror(errno));