error.c: check if EWOULDBLOCK is defined

* error.c (set_syserr): EWOULDBLOCK may not be defined, check if
  defined first.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-10-20 06:58:16 +00:00
parent bd2d094aab
commit 8d9e1f9dad

View File

@ -1293,7 +1293,7 @@ set_syserr(int n, const char *name)
case EAGAIN:
rb_eEAGAIN = error;
#if EAGAIN != EWOULDBLOCK
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
break;
case EWOULDBLOCK:
#endif