From: Ryan Dahl Date: Wed, 28 Apr 2010 22:07:15 +0000 (-0700) Subject: Fix signo_string for linux and solaris X-Git-Tag: v0.1.93~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bb21b51918241eebbff2e64b05b5e126f5c4ecb;p=platform%2Fupstream%2Fnodejs.git Fix signo_string for linux and solaris --- diff --git a/src/node.cc b/src/node.cc index 8e21111..77e80e0 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 ""; } }