Set h_errno for gethostbyname/addr

This commit is contained in:
Josh Megnauth
2024-11-02 12:21:47 +00:00
committed by Jeremy Soller
parent 2dad215394
commit bf1ea4e799
3 changed files with 146 additions and 10 deletions
+9
View File
@@ -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 */