Adding *BSD compatibility. - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit afc242d83cb480ecd0ec09f0dd43f3389df73f89 DIR parent cd5884a78c51da927a0cbf302989b21a055b770a HTML Author: Christoph Lohmann <20h@r-36.net> Date: Wed, 2 Mar 2011 15:43:25 +0100 Adding *BSD compatibility. Diffstat: M ind.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/ind.c b/ind.c @@ -12,6 +12,7 @@ #include <stdlib.h> #include <netdb.h> #include <sys/socket.h> +#include <netinet/in.h> #include <arpa/inet.h> #include "ind.h" @@ -299,7 +300,8 @@ reverselookup(char *host) rethost = NULL; if(inet_pton(AF_INET, host, &hoststr)) { - client = gethostbyaddr(&hoststr, sizeof(hoststr), AF_INET); + client = gethostbyaddr((const void *)&hoststr, + sizeof(hoststr), AF_INET); if(client != NULL) rethost = strdup(client->h_name); }