LibC: Add an h_addr macro for old code that doesn't know about h_addr_list.

This commit is contained in:
Andreas Kling 2019-05-19 19:55:49 +02:00
commit 5b6e66195b
Notes: sideshowbarker 2024-07-19 14:00:56 +09:00

View file

@ -11,6 +11,7 @@ struct hostent {
int h_addrtype;
int h_length;
char** h_addr_list;
#define h_addr h_addr_list[0]
};
struct hostent *gethostbyname(const char*);