From ed4d0184a16db455d626e64722daf9ca4b71742a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 8 Aug 2002 21:17:03 +0000 Subject: 2002-08-08 Roland McGrath * resolv/netdb.h: Don't declare h_errno as a plain global any more. --- resolv/netdb.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'resolv/netdb.h') diff --git a/resolv/netdb.h b/resolv/netdb.h index d041163ac6..d153c9b325 100644 --- a/resolv/netdb.h +++ b/resolv/netdb.h @@ -53,15 +53,13 @@ __BEGIN_DECLS -/* Error status for non-reentrant lookup functions. */ -extern int h_errno; +/* Error status for non-reentrant lookup functions. + We use a macro to access always the thread-specific `h_errno' variable. */ +#define h_errno (*__h_errno_location ()) /* Function to get address of global `h_errno' variable. */ extern int *__h_errno_location (void) __THROW __attribute__ ((__const__)); -/* Use a macro to access always the thread specific `h_errno' variable. */ -#define h_errno (*__h_errno_location ()) - /* Possible values left in `h_errno'. */ #define NETDB_INTERNAL -1 /* See errno. */ -- cgit v1.2.3