diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-08 21:17:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-08 21:17:03 +0000 |
commit | ed4d0184a16db455d626e64722daf9ca4b71742a (patch) | |
tree | 1b1704a1a404687570317f6e7662e2f0a277405f /resolv | |
parent | c0b338331e8eb0979b909479d6aa9fd1cddd63ec (diff) | |
download | glibc-ed4d0184a16db455d626e64722daf9ca4b71742a.zip glibc-ed4d0184a16db455d626e64722daf9ca4b71742a.tar.gz glibc-ed4d0184a16db455d626e64722daf9ca4b71742a.tar.bz2 |
2002-08-08 Roland McGrath <roland@frob.com>
* resolv/netdb.h: Don't declare h_errno as a plain global any more.
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/netdb.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/resolv/netdb.h b/resolv/netdb.h index d041163..d153c9b 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. */ |