Fix signo_string for linux and solaris

This commit is contained in:
Ryan Dahl committed 2010-04-28 15:07:15 -07:00
1 parent 7a72885ede
commit 3bb21b5191
1 file changed
+8 -8
+8 -8
View File
@@ -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 "";
}
}