Introduction
Introduction Statistics Contact Development Disclaimer Help
Adding *BSD compatibility. - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
commit afc242d83cb480ecd0ec09f0dd43f3389df73f89
parent cd5884a78c51da927a0cbf302989b21a055b770a
Author: Christoph Lohmann <[email protected]>
Date: Wed, 2 Mar 2011 15:43:25 +0100
Adding *BSD compatibility.
Diffstat:
M ind.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
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);
}
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.