From 8da931c772fa71da7e4d638fe310533b8e124ca3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 21 Feb 2007 08:16:28 +0000 Subject: redo errno handling so that it should work both in thread and non-threaded situations --- libc/misc/internals/__h_errno_location.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libc/misc/internals/__h_errno_location.c') diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c index 10b7673e3..2ac21774c 100644 --- a/libc/misc/internals/__h_errno_location.c +++ b/libc/misc/internals/__h_errno_location.c @@ -4,13 +4,7 @@ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -#define __FORCE_GLIBC -#include -#include -#undef h_errno -extern int h_errno; - -libc_hidden_proto(h_errno) +#include "internal_errno.h" libc_hidden_proto(__h_errno_location) int * weak_const_function __h_errno_location (void) -- cgit v1.2.3