From 90dad97fc07f049383903a166631e2c257f9b8c1 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 16 Dec 2025 17:02:05 +0100 Subject: Add support for TLS in the libc --- lib/libc/errno/errno.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/libc/errno/errno.c') diff --git a/lib/libc/errno/errno.c b/lib/libc/errno/errno.c index 09b22f4d..fc7c99bb 100644 --- a/lib/libc/errno/errno.c +++ b/lib/libc/errno/errno.c @@ -1,7 +1 @@ -#include <__thread.h> -#include - -int *__errno(void) -{ - return &thrd_current()->terrno; -} +_Thread_local int errno; -- cgit v1.2.3