gallium/util: Replace h_addr with h_addr_list[0].

Fixes compilation error on Mac OS.
This commit is contained in:
Vinson Lee 2010-01-01 15:01:22 -08:00
parent a349687d49
commit 7df06e7e9d

View file

@ -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);