summaryrefslogtreecommitdiff
path: root/include/netdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/netdb.h b/include/netdb.h
index aea6e0050..c3e07728c 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -53,13 +53,9 @@
__BEGIN_DECLS
-/* Error status for non-reentrant lookup functions.
- * NOTE: uClibc reuses errno for h_errno. */
-#include <errno.h>
-#define h_errno errno
+/* Error status for non-reentrant lookup functions. */
+extern int h_errno;
-
-#if 0
/* Function to get address of global `h_errno' variable. */
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
@@ -80,7 +76,6 @@ __set_h_errno (int __err)
/* Use a macro to access always the thread specific `h_errno' variable. */
# define h_errno (*__h_errno_location ())
#endif
-#endif
/* Possible values left in `h_errno'. */