Skip to content

Commit 128b10b

Browse files
author
StunxFS
committed
fix(core): workaround for compilation errors with c.last_errno_error
1 parent bdf58d4 commit 128b10b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/core/src/errors.ri

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
import c;
66

77
public alias ErrnoError = c.ErrnoError;
8-
public alias last_errno_error = c.last_errno_error;
8+
9+
// FIXME: public alias last_errno_error = c.last_errno_error;
10+
public func last_errno_error() -> c.ErrnoError {
11+
return c.last_errno_error();
12+
}
913

1014
/// This trait is used for errors returned with result types (!T).
1115
public trait Throwable < Stringable { }

0 commit comments

Comments
 (0)