From 241d339a1a68ec0286d56850360d3d9b26985986 Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Sun, 15 May 2011 22:12:08 +1000 Subject: [PATCH] Portability fixes for FreeBSD - include the right headers. --- addr.c | 1 + addr.h | 3 ++- hosts_db.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/addr.c b/addr.c index dc23e32..721d5e3 100644 --- a/addr.c +++ b/addr.c @@ -9,6 +9,7 @@ #include "addr.h" +#include /* for inet_ntop */ #include #include /* for memcmp */ #include /* for getaddrinfo */ diff --git a/addr.h b/addr.h index 2fd2ca1..ea2ae3f 100644 --- a/addr.h +++ b/addr.h @@ -10,7 +10,8 @@ #ifndef __DARKSTAT_ADDR_H #define __DARKSTAT_ADDR_H -#include +#include /* for AF_INET6 */ +#include /* for in6_addr */ struct addr { union { diff --git a/hosts_db.h b/hosts_db.h index f9ed169..69d6544 100644 --- a/hosts_db.h +++ b/hosts_db.h @@ -9,6 +9,8 @@ #ifndef __DARKSTAT_HOSTS_DB_H #define __DARKSTAT_HOSTS_DB_H +#include /* for time_t and uint64_t (esp on FreeBSD) */ + #include "addr.h" struct hashtable; -- 2.17.1