From 4063f74b8d6b54b501eabeeadf5cb03030f37539 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 13 Dec 2014 12:47:18 +0100 Subject: some compilation fixes for RHEL-6 --- src/3rdParty/http_tiny/http_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/3rdParty/http_tiny/http_lib.c b/src/3rdParty/http_tiny/http_lib.c index 8bb7384..db5b9b3 100644 --- a/src/3rdParty/http_tiny/http_lib.c +++ b/src/3rdParty/http_tiny/http_lib.c @@ -48,6 +48,7 @@ static char *rcsid="$Id: http_lib.c,v 3.5 1998/09/23 06:19:15 dl Exp $"; #include #include #include +#include #include #include @@ -184,7 +185,7 @@ static http_retcode http_query(command, url, additional_header, mode, : SERVER_DEFAULT ) ))) { memset((char *) &server,0, sizeof(server)); - memmove((char *) &server.sin_addr, hp->h_addr, hp->h_length); + memmove((char *) &server.sin_addr, hp->h_addr_list[0], hp->h_length); server.sin_family = hp->h_addrtype; server.sin_port = (unsigned short) htons( port ); } else -- cgit v1.2.3-54-g00ecf