summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/internals/__h_errno_location.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c
index 209dcfc9c..f4a587e96 100644
--- a/libc/misc/internals/__h_errno_location.c
+++ b/libc/misc/internals/__h_errno_location.c
@@ -1,14 +1,14 @@
-#define __FORCE_GLIBC
-#include <features.h>
-#include <netdb.h>
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
-#ifndef __UCLIBC_HAS_THREADS_NATIVE__
-#undef h_errno
-extern int h_errno;
-#endif
+#include "internal_errno.h"
+/* libc_hidden_proto(__h_errno_location) */
int * weak_const_function __h_errno_location (void)
{
return &h_errno;
}
-
+libc_hidden_weak(__h_errno_location)