diff options
| author | Brian Feldman <green@FreeBSD.org> | 2004-02-25 21:03:46 +0000 |
|---|---|---|
| committer | Brian Feldman <green@FreeBSD.org> | 2004-02-25 21:03:46 +0000 |
| commit | 33dee819339974eaf7dbf69068001771cbdcd548 (patch) | |
| tree | 9638e0bc7f96f243bb180d862cc5f1093a53454c /include/netdb.h | |
| parent | 59b4f7f45e04e06c04c5928e6750e43c2562a6ff (diff) | |
Notes
Diffstat (limited to 'include/netdb.h')
| -rw-r--r-- | include/netdb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/netdb.h b/include/netdb.h index 0fa4d16c57f8..ba3ed32f39a9 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -82,7 +82,7 @@ typedef __socklen_t socklen_t; #define _PATH_PROTOCOLS "/etc/protocols" #define _PATH_SERVICES "/etc/services" -extern int h_errno; +#define h_errno (*__h_error()) /* * Structures returned by network data base library. All addresses are @@ -135,7 +135,7 @@ struct addrinfo { /* * Error return codes from gethostbyname() and gethostbyaddr() - * (left in extern int h_errno). + * (left in h_errno). */ #define NETDB_INTERNAL -1 /* see errno */ @@ -254,6 +254,7 @@ void setservent(int); */ /* DO NOT USE THESE, THEY ARE SUBJECT TO CHANGE AND ARE NOT PORTABLE!!! */ +int * __h_error(void); void _sethosthtent(int); void _endhosthtent(void); void _sethostdnsent(int); |
