LibC: Add h_addr definition for hostent backwards compatibility
This commit is contained in:
parent
4b1c20fa36
commit
64002626b9
|
@ -54,6 +54,7 @@ struct hostent
|
|||
int h_addrtype; /* Address type. */
|
||||
int h_length; /* The length, in bytes, of the address. */
|
||||
char** h_addr_list; /* A pointer to an array of pointers to network addresses (in network byte order) for the host, terminated by a null pointer. */
|
||||
#define h_addr h_addr_list[0] /* Backwards compatibility */
|
||||
};
|
||||
|
||||
struct netent
|
||||
|
|
Loading…
Reference in New Issue