From ffba231886579aa74a21710e815b2025caf15e87 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Mon, 12 Mar 2001 10:06:18 +0000 Subject: Define h_errno to be errno for now. --- include/netdb.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include/netdb.h') 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 +#define h_errno errno #define NETDB_INTERNAL -1 /* see errno */ #define NETDB_SUCCESS 0 /* no problem */ -- cgit v1.2.3