From 9969c4881a4f2e02cea44aae68c8b8e595285e06 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Tue, 29 Jun 2010 19:54:30 +0000 Subject: [PATCH] Added errno definition. Woops. git-svn-id: http://picoc.googlecode.com/svn/trunk@447 21eae674-98b7-11dd-bd71-f92a316d2d60 --- cstdlib/errno.c | 2 ++ 1 file changed, 2 insertions(+) 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 */