Skip to content

Commit

Permalink
Merge pull request #1 from EduardoMorras/EduardoMorras-FreeBSD_inet_a…
Browse files Browse the repository at this point in the history
…ton_fix-1

Fix Portability issue with inet_aton on FreeBSD 13.2 #22549
  • Loading branch information
EduardoMorras authored Jan 9, 2025
2 parents d9944ab + 6aafd3a commit af94fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/qio/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int sys_set_sys_sockaddr_t(sys_sockaddr_t* addr, const char* host, u_int16_t por
struct sockaddr_in *addr_inet = (struct sockaddr_in *)&addr->addr;
addr_inet->sin_family = AF_INET;
addr_inet->sin_port = htons(port);
return inet_aton(host, &addr_inet->sin_addr);
return inet_pton(AF_INET, host, &addr_inet->sin_addr);
}
else if(family == AF_INET6){
struct sockaddr_in6 *addr_inet6 = (struct sockaddr_in6 *)&addr->addr;
Expand Down

0 comments on commit af94fa2

Please sign in to comment.