EWOULDBLOCK does not exist on platforms without O_NONBLOCK
This commit is contained in:
parent
3353ab37c2
commit
e5b1b5cefb
1 changed files with 2 additions and 0 deletions
|
@ -94,10 +94,12 @@ bool flush_meta(connection_t *c)
|
||||||
c->name, c->hostname);
|
c->name, c->hostname);
|
||||||
} else if(errno == EINTR) {
|
} else if(errno == EINTR) {
|
||||||
continue;
|
continue;
|
||||||
|
#ifdef EWOULDBLOCK
|
||||||
} else if(errno == EWOULDBLOCK) {
|
} else if(errno == EWOULDBLOCK) {
|
||||||
ifdebug(CONNECTIONS) logger(LOG_DEBUG, _("Flushing %d bytes to %s (%s) would block"),
|
ifdebug(CONNECTIONS) logger(LOG_DEBUG, _("Flushing %d bytes to %s (%s) would block"),
|
||||||
c->outbuflen, c->name, c->hostname);
|
c->outbuflen, c->name, c->hostname);
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
logger(LOG_ERR, _("Flushing meta data to %s (%s) failed: %s"), c->name,
|
logger(LOG_ERR, _("Flushing meta data to %s (%s) failed: %s"), c->name,
|
||||||
c->hostname, strerror(errno));
|
c->hostname, strerror(errno));
|
||||||
|
|
Loading…
Reference in a new issue