projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3353ab3
)
EWOULDBLOCK does not exist on platforms without O_NONBLOCK
author
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 14 Nov 2006 12:28:04 +0000
(12:28 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 14 Nov 2006 12:28:04 +0000
(12:28 +0000)
src/meta.c
patch
|
blob
|
history
diff --git
a/src/meta.c
b/src/meta.c
index 76938276750573060cce2e70100b2f8b6b01c623..a32d413776d1f7781f5076dc24b7bf7808d62337 100644
(file)
--- 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));