aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/platform/posix/posix_debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platform/posix/posix_debug.c b/src/platform/posix/posix_debug.c
index aa7afaea..56699d02 100644
--- a/src/platform/posix/posix_debug.c
+++ b/src/platform/posix/posix_debug.c
@@ -78,7 +78,9 @@ nni_plat_errnos[] = {
{ EPIPE, NNG_ECLOSED },
{ EPROTO, NNG_EPROTO },
{ EPROTONOSUPPORT, NNG_ENOTSUP },
+#ifdef ETIME // Found in STREAMs, not present on all systems.
{ ETIME, NNG_ETIMEDOUT },
+#endif
{ ETIMEDOUT, NNG_ETIMEDOUT },
{ EWOULDBLOCK, NNG_EAGAIN },
// must be last