EWOULDBLOCK does not exist on platforms without O_NONBLOCK

This commit is contained in:
Guus Sliepen 2006-11-14 12:28:04 +00:00
parent 3353ab37c2
commit e5b1b5cefb

View file

@ -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));