use __h_errno_location for h_errno
[musl] / src / network / h_errno.c
index 73ead04..5560234 100644 (file)
@@ -1 +1,9 @@
+#include <netdb.h>
+
+#undef h_errno;
 int h_errno;
+
+int *__h_errno_location(void)
+{
+       return &h_errno;
+}