Mesa (mesa_7_7_branch): gallium/util: Replace h_addr with h_addr_list[0].

Vinson Lee vlee at kemper.freedesktop.org
Fri Jan 1 23:03:35 UTC 2010


Module: Mesa
Branch: mesa_7_7_branch
Commit: 7df06e7e9d5d5ac0a5a2fa0af11afa7f5241c5a4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7df06e7e9d5d5ac0a5a2fa0af11afa7f5241c5a4

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Jan  1 15:01:22 2010 -0800

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

Fixes compilation error on Mac OS.

---

 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 9eb8f30..87ee0e4 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);
 




More information about the mesa-commit mailing list