From 0736203a630b2fbc2bc3e6383e4aec9285bba184 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 5 Feb 2011 08:31:33 -0800 Subject: Context switch also means switching that global errno variable. --- libc/include/errno.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/include/errno.h') diff --git a/libc/include/errno.h b/libc/include/errno.h index c88ea64..5e0af8c 100644 --- a/libc/include/errno.h +++ b/libc/include/errno.h @@ -137,4 +137,6 @@ enum errno_t { ERFKILL = 132, }; +volatile extern enum errno_t errno; + #endif -- cgit v1.2.3