#include "addr.h"
+#include <arpa/inet.h> /* for inet_ntop */
#include <assert.h>
#include <string.h> /* for memcmp */
#include <netdb.h> /* for getaddrinfo */
#ifndef __DARKSTAT_ADDR_H
#define __DARKSTAT_ADDR_H
-#include <arpa/inet.h>
+#include <sys/socket.h> /* for AF_INET6 */
+#include <netinet/in.h> /* for in6_addr */
struct addr {
union {
#ifndef __DARKSTAT_HOSTS_DB_H
#define __DARKSTAT_HOSTS_DB_H
+#include <sys/types.h> /* for time_t and uint64_t (esp on FreeBSD) */
+
#include "addr.h"
struct hashtable;