summaryrefslogtreecommitdiff
path: root/libc/misc/internals/__h_errno_location.c
diff options
context:
space:
mode:
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)