From 9b2aac61b28056418ee3a8fdb2c7226acc65d37c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 28 Apr 2010 12:58:00 -0700 Subject: [PATCH] Resolve EWOULDBLOCK to string if different thatn EAGAIN --- src/node.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/node.cc b/src/node.cc index 65f6fde74c..c7b17d4dfc 100644 --- a/src/node.cc +++ b/src/node.cc @@ -301,8 +301,10 @@ static inline const char *errno_string(int errorno) { #ifdef EAGAIN ERRNO_CASE(EAGAIN); -#else -# ifdef EWOULDBLOCK +#endif + +#ifdef EWOULDBLOCK +# if EAGAIN != EWOULDBLOCK ERRNO_CASE(EWOULDBLOCK); # endif #endif