diff options
Diffstat (limited to 'firmware/libc/errno.c')
-rw-r--r-- | firmware/libc/errno.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/libc/errno.c b/firmware/libc/errno.c index 146d6196ca..0672768484 100644 --- a/firmware/libc/errno.c +++ b/firmware/libc/errno.c | |||
@@ -1,5 +1,5 @@ | |||
1 | #include "../thread-internal.h" | 1 | #include "../thread-internal.h" |
2 | int * __errno(void) | 2 | int * __errno(void) |
3 | { | 3 | { |
4 | return &thread_self_entry()->__errno; | 4 | return &__running_self_entry()->__errno; |
5 | } | 5 | } |