diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-12-13 12:47:18 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-12-13 12:47:18 +0100 |
commit | 4063f74b8d6b54b501eabeeadf5cb03030f37539 (patch) | |
tree | 663f0410ccb76b50c8176fe10ddd11a122f720a3 /src/3rdParty | |
parent | 08153440c2c2867838f31012573450bdaa4b9fd9 (diff) | |
download | biruda-4063f74b8d6b54b501eabeeadf5cb03030f37539.tar.gz biruda-4063f74b8d6b54b501eabeeadf5cb03030f37539.tar.bz2 |
some compilation fixes for RHEL-6
Diffstat (limited to 'src/3rdParty')
-rw-r--r-- | src/3rdParty/http_tiny/http_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <netdb.h> #include <ctype.h> #include <string.h> +#include <strings.h> #include <unistd.h> #include <stdlib.h> @@ -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 |