summaryrefslogtreecommitdiff
path: root/libc/misc/internals/__h_errno_location.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-02-21 08:16:28 +0000
committerMike Frysinger <vapier@gentoo.org>2007-02-21 08:16:28 +0000
commit8da931c772fa71da7e4d638fe310533b8e124ca3 (patch)
tree0de4b4f25e999e72d989bf031abbd3e87023ee05 /libc/misc/internals/__h_errno_location.c
parent4fd21f190d732d724efd2cb59a0ced85bad80978 (diff)
redo errno handling so that it should work both in thread and non-threaded situations
Diffstat (limited to 'libc/misc/internals/__h_errno_location.c')
-rw-r--r--libc/misc/internals/__h_errno_location.c8
1 files changed, 1 insertions, 7 deletions
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 <features.h>
-#include <netdb.h>
-#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)