From d3638e8b6bc85cef900430cedcf2f0beb32c2412 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 12 Apr 2017 17:02:41 -0700 Subject: ETIME may not be defined on various platforms (STREAMs specific). --- src/platform/posix/posix_debug.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-70-g09d2