Set h_errno for gethostbyname/addr
This commit is contained in:
committed by
Jeremy Soller
parent
2dad215394
commit
bf1ea4e799
@@ -1,6 +1,15 @@
|
||||
#ifndef _BITS_NETDB_H
|
||||
#define _BITS_NETDB_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define h_errno (*__h_errno_location())
|
||||
# define h_addr h_addr_list[0] /* Address, for backward compatibility.*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif /* _BITS_NETDB_H */
|
||||
|
||||
Reference in New Issue
Block a user