diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-04-12 17:02:41 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-04-12 17:02:41 -0700 |
| commit | d3638e8b6bc85cef900430cedcf2f0beb32c2412 (patch) | |
| tree | 8c9f64be3bbcdc46fc7b4ec2742c786d6818e6a0 /src/platform/posix/posix_debug.c | |
| parent | 3f4ec4032684ce1c1ee629cdf6fce992a01521b2 (diff) | |
| download | nng-d3638e8b6bc85cef900430cedcf2f0beb32c2412.tar.gz nng-d3638e8b6bc85cef900430cedcf2f0beb32c2412.tar.bz2 nng-d3638e8b6bc85cef900430cedcf2f0beb32c2412.zip | |
ETIME may not be defined on various platforms (STREAMs specific).
Diffstat (limited to 'src/platform/posix/posix_debug.c')
| -rw-r--r-- | src/platform/posix/posix_debug.c | 2 |
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 |
