From 3bb21b51918241eebbff2e64b05b5e126f5c4ecb Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 28 Apr 2010 15:07:15 -0700 Subject: [PATCH] Fix signo_string for linux and solaris --- src/node.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/node.cc b/src/node.cc index 8e2111129e..77e80e0617 100644 --- a/src/node.cc +++ b/src/node.cc @@ -469,14 +469,16 @@ static inline const char *errno_string(int errorno) { ERRNO_CASE(ENOEXEC); #endif -#ifdef ENOLCK - ERRNO_CASE(ENOLCK); -#endif - #ifdef ENOLINK ERRNO_CASE(ENOLINK); #endif +#ifdef ENOLCK +# if ENOLINK != ENOLCK + ERRNO_CASE(ENOLCK); +# endif +#endif + #ifdef ENOMEM ERRNO_CASE(ENOMEM); #endif @@ -725,7 +727,9 @@ const char *signo_string(int signo) { #endif #ifdef SIGPOLL +# if SIGPOLL != SIGIO SIGNO_CASE(SIGPOLL); +# endif #endif #ifdef SIGLOST @@ -740,10 +744,6 @@ const char *signo_string(int signo) { SIGNO_CASE(SIGSYS); #endif -#ifdef SIGUNUSED - SIGNO_CASE(SIGUNUSED); -#endif - default: return ""; } }