From 1e04052f49c8fa26213de2a0a7e9d43ad873d5a1 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 12 Aug 2020 13:26:50 -0400 Subject: migrate __errno() to using _perthread.h macros --- src/nonstd/__libc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/nonstd/__libc.c') diff --git a/src/nonstd/__libc.c b/src/nonstd/__libc.c index 9000dd46..0d8351ab 100644 --- a/src/nonstd/__libc.c +++ b/src/nonstd/__libc.c @@ -1,7 +1,5 @@ -#include "sys/types.h" #include "../_nonstd.h" #include "../locale/_locale.h" -#include "../stdio/_stdio.h" void *__libc(LIBC_INTERNAL variable) { @@ -11,9 +9,6 @@ void *__libc(LIBC_INTERNAL variable) void *r = (void*)0; switch (variable) { - case ERRNO: - return __libc_per_thread(ERRNO); - case THREAD_LOCALE: r = __libc_per_thread(THREAD_LOCALE); if (r) { -- cgit v1.2.1