From: Vinson Lee Date: Fri, 1 Jan 2010 23:01:22 +0000 (-0800) Subject: gallium/util: Replace h_addr with h_addr_list[0]. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7df06e7e9d5d5ac0a5a2fa0af11afa7f5241c5a4;p=mesa.git gallium/util: Replace h_addr with h_addr_list[0]. Fixes compilation error on Mac OS. --- diff --git a/src/gallium/auxiliary/util/u_network.c b/src/gallium/auxiliary/util/u_network.c index 9eb8f309cd1..87ee0e47685 100644 --- a/src/gallium/auxiliary/util/u_network.c +++ b/src/gallium/auxiliary/util/u_network.c @@ -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);