Skip to content

Commit

Permalink
[Truffle] Check if the native errno constant is defined before defini…
Browse files Browse the repository at this point in the history
…ng it.
  • Loading branch information
eregon committed Nov 22, 2016
1 parent 353623b commit 386573e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -444,7 +444,7 @@ public CoreLibrary(RubyContext context) {
errnoModule = defineModule("Errno");

for (Errno errno : Errno.values()) {
if (errno.name().startsWith("E")) {
if (errno.defined()) {
if (errno.equals(Errno.EWOULDBLOCK) && Errno.EWOULDBLOCK.intValue() == Errno.EAGAIN.intValue()){
continue; // Don't define it as a class, define it as constant later.
}
Expand Down

0 comments on commit 386573e

Please sign in to comment.