diff --git a/cstdlib/errno.c b/cstdlib/errno.c index 75ed93e..071f7eb 100644 --- a/cstdlib/errno.c +++ b/cstdlib/errno.c @@ -648,6 +648,8 @@ void StdErrnoSetupFunc(void) #ifdef EXDEV VariableDefinePlatformVar(NULL, "EXDEV", &IntType, (union AnyValue *)&EXDEVValue, FALSE); #endif + + VariableDefinePlatformVar(NULL, "errno", &IntType, (union AnyValue *)&errno, TRUE); } #endif /* !BUILTIN_MINI_STDLIB */