* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-#include "internal_errno.h"
+#include <features.h>
+#include <netdb.h>
-/* libc_hidden_proto(__h_errno_location) */
-int * weak_const_function __h_errno_location (void)
+#ifndef __UCLIBC_HAS_TLS__
+# undef h_errno
+extern int h_errno;
+#endif
+
+int weak_const_function *__h_errno_location(void)
{
return &h_errno;
}
-libc_hidden_weak(__h_errno_location)