Adding *BSD compatibility. - geomyidae - A small C-based gopherd.
Log
Files
Refs
README
LICENSE
---
commit afc242d83cb480ecd0ec09f0dd43f3389df73f89
parent cd5884a78c51da927a0cbf302989b21a055b770a
Author: Christoph Lohmann <20h@r-36.net>
Date:   Wed,  2 Mar 2011 15:43:25 +0100

Adding *BSD compatibility.

Diffstat:
  ind.c                               |       4 +++-

1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/ind.c b/ind.c
@@ -12,6 +12,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #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);
         }