From f418f52701de02954c90341e5c9ccdd3f07ccd33 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 25 Mar 2011 00:49:42 +0100 Subject: errno, h_errno: correct them for non-TLS Move h_errno related stuff to separate file. Do not hide errno and h_errno for non-TLS, else it keeps being 0. Make __[h_]errno_location weak for non-TLS. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/misc/internals/internal_errno.h | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 libc/misc/internals/internal_errno.h (limited to 'libc/misc/internals/internal_errno.h') diff --git a/libc/misc/internals/internal_errno.h b/libc/misc/internals/internal_errno.h deleted file mode 100644 index b49198579..000000000 --- a/libc/misc/internals/internal_errno.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * - */ - -#include -#include -#include - -#ifndef __UCLIBC_HAS_TLS__ - -#undef errno -#undef h_errno - -extern int h_errno; -extern int errno; - -#ifdef __UCLIBC_HAS_THREADS__ -libc_hidden_proto(h_errno) -libc_hidden_proto(errno) -#endif -#endif -- cgit v1.2.3