From 26507c1bf246ec753331fc88a9385946d3893796 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 31 Oct 2002 08:05:47 +0000 Subject: [PATCH] add 'errno' here, since it makes the mingw32 build work fine again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2787 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/win32/kernel.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/uisimulator/win32/kernel.c b/uisimulator/win32/kernel.c index 045b03d330..150b8e42cc 100644 --- a/uisimulator/win32/kernel.c +++ b/uisimulator/win32/kernel.c @@ -23,6 +23,11 @@ #include "thread-win32.h" #include "thread.h" +/* (Daniel 2002-10-31) Mingw32 requires this errno variable to be present. + I'm not quite sure why and I don't know if this breaks the MSVC compile. + If it does, we should put this within #ifdef __MINGW32__ */ +int errno; + void sleep(int ticks) { Sleep (1000 / HZ * ticks); @@ -78,4 +83,4 @@ int set_irq_level (int level) { static int _lv = 0; return (_lv = level); -} \ No newline at end of file +}