Skip to content

Commit

Permalink
adjust struct hostent for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed May 7, 2023
1 parent 39a53c4 commit 6714c04
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions libctru/include/netdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
#define TRY_AGAIN 4

struct hostent {
char *h_name;
char **h_aliases;
int h_addrtype;
int h_length;
char **h_addr_list;
char *h_addr;
char *h_name; /* official name of host */
char **h_aliases; /* alias list */
uint16_t h_addrtype; /* host address type */
uint16_t h_length; /* length of address */
char **h_addr_list; /* list of addresses from name server */
};

#define h_addr h_addr_list[0] /* for backward compatibility */

#define AI_PASSIVE 0x01
#define AI_CANONNAME 0x02
Expand Down

0 comments on commit 6714c04

Please sign in to comment.