mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
gallium/util: Replace h_addr with h_addr_list[0].
Fixes compilation error on Mac OS.
This commit is contained in:
parent
a349687d49
commit
7df06e7e9d
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ u_socket_connect(const char *hostname, uint16_t port)
|
|||
if (!host)
|
||||
return -1;
|
||||
|
||||
memcpy((char *)&sa.sin_addr,host->h_addr,host->h_length);
|
||||
memcpy((char *)&sa.sin_addr,host->h_addr_list[0],host->h_length);
|
||||
sa.sin_family= host->h_addrtype;
|
||||
sa.sin_port = htons(port);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue