summaryrefslogtreecommitdiffstats
path: root/firmware/libc/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libc/errno.c')
-rw-r--r--firmware/libc/errno.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/libc/errno.c b/firmware/libc/errno.c
index 6e7bb62b51..2e3cd9083e 100644
--- a/firmware/libc/errno.c
+++ b/firmware/libc/errno.c
@@ -1 +1,5 @@
-int errno;
+#include "thread.h"
+int * __errno(void)
+{
+ return &thread_self_entry()->__errno;
+}