LibC: Add h_addr definition for hostent backwards compatibility

This commit is contained in:
Bananymous 2025-04-15 21:39:50 +03:00
parent 4b1c20fa36
commit 64002626b9
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ struct hostent
int h_addrtype; /* Address type. */ int h_addrtype; /* Address type. */
int h_length; /* The length, in bytes, of the address. */ 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. */ 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 struct netent