Skip to content

Commit

Permalink
Use the jnr.ffi.Runtime argument version of LastError#getLastError an…
Browse files Browse the repository at this point in the history
…d #setLastError
  • Loading branch information
vp-of-awesome committed Jul 10, 2011
1 parent b1850a3 commit 9dfb2c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/jruby/ext/posix/BaseNativePOSIX.java
Expand Up @@ -288,11 +288,11 @@ public boolean isatty(FileDescriptor fd) {
}

public int errno() {
return LastError.getLastError();
return LastError.getLastError(getRuntime());
}

public void errno(int value) {
LastError.setLastError(value);
LastError.setLastError(getRuntime(), value);
}

public boolean isNative() {
Expand Down

0 comments on commit 9dfb2c8

Please sign in to comment.