summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-01-01 15:01:22 -0800
committerVinson Lee <[email protected]>2010-01-01 15:01:22 -0800
commit7df06e7e9d5d5ac0a5a2fa0af11afa7f5241c5a4 (patch)
tree3182912eb94e3f2c56262b2ac2c9366cdce91ec3 /src/gallium/auxiliary
parenta349687d499a76496dc9433d5437398f774f0bd4 (diff)
gallium/util: Replace h_addr with h_addr_list[0].
Fixes compilation error on Mac OS.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_network.c2
1 files changed, 1 insertions, 1 deletions
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);