# HG changeset patch # User Markus Bröker # Date 1239879075 -7200 # Node ID f59d8a8e786f6432b2678076af51fa554a112c10 # Parent 220d76d0d672651f56f9f7160226cdfd5b3ee139 struct hostent has no longer a member h_addr Current netdb.h lacks support for the old h_addr pointer without special USE_GNU defines... committer: Markus Bröker diff --git a/connection.c b/connection.c --- a/connection.c +++ b/connection.c @@ -29,7 +29,7 @@ return -1; } sock.sin_family = hs->h_addrtype; - memcpy (&sock.sin_addr.s_addr, hs->h_addr, hs->h_length); + memcpy (&sock.sin_addr.s_addr, hs->h_addr_list[0], hs->h_length); } if ((sockfd = socket (AF_INET, SOCK_STREAM, 0)) < 0) {