aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-04-12 17:02:41 -0700
committerGarrett D'Amore <garrett@damore.org>2017-04-12 17:02:41 -0700
commitd3638e8b6bc85cef900430cedcf2f0beb32c2412 (patch)
tree8c9f64be3bbcdc46fc7b4ec2742c786d6818e6a0
parent3f4ec4032684ce1c1ee629cdf6fce992a01521b2 (diff)
downloadnng-d3638e8b6bc85cef900430cedcf2f0beb32c2412.tar.gz
nng-d3638e8b6bc85cef900430cedcf2f0beb32c2412.tar.bz2
nng-d3638e8b6bc85cef900430cedcf2f0beb32c2412.zip
ETIME may not be defined on various platforms (STREAMs specific).
-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