summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-03-12 10:06:18 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-03-12 10:06:18 +0000
commitffba231886579aa74a21710e815b2025caf15e87 (patch)
treef9592285c34e42c4db8a433525593e187d58c8cb
parent4ca714aa6a1ece8b78f13440dbb5271b8e9c21d6 (diff)
Define h_errno to be errno for now.
-rw-r--r--include/netdb.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 3a2d62446..888b87ded 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -123,14 +123,16 @@ struct rpcent {
#define __NETDB_MAXALIASES 35
#define __NETDB_MAXADDRS 35
+#endif
+
/*
* Error return codes from gethostbyname() and gethostbyaddr()
* (left in extern int h_errno).
*/
-#define h_errno (*__h_errno_location ())
-#else
-extern int h_errno;
-#endif
+
+/* uClibc reuses errno for h_errno. */
+#include <errno.h>
+#define h_errno errno
#define NETDB_INTERNAL -1 /* see errno */
#define NETDB_SUCCESS 0 /* no problem */