diff options
author | Vinson Lee <[email protected]> | 2010-01-01 15:01:22 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-01-01 15:01:22 -0800 |
commit | 7df06e7e9d5d5ac0a5a2fa0af11afa7f5241c5a4 (patch) | |
tree | 3182912eb94e3f2c56262b2ac2c9366cdce91ec3 /src/gallium/auxiliary/util/u_network.c | |
parent | a349687d499a76496dc9433d5437398f774f0bd4 (diff) |
gallium/util: Replace h_addr with h_addr_list[0].
Fixes compilation error on Mac OS.
Diffstat (limited to 'src/gallium/auxiliary/util/u_network.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_network.c | 2 |
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); |