Skip to content

Commit 8fecfc8

Browse files
committed
fix hostent struct for wii
h_addrtype and h_length are 16bit on wii network stack. closes #252
1 parent bf10abf commit 8fecfc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

external/bsd/include/netdb.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ extern __thread int h_errno;
8484
struct hostent {
8585
char *h_name; /* official name of host */
8686
char **h_aliases; /* alias list */
87-
int h_addrtype; /* host address type */
88-
int h_length; /* length of address */
87+
short h_addrtype; /* host address type */
88+
short h_length; /* length of address */
8989
char **h_addr_list; /* list of addresses from name server */
9090
#define h_addr h_addr_list[0] /* address, for backward compatibility */
9191
};

0 commit comments

Comments
 (0)