Index: headers.c
--- headers.c.orig	2005-12-15 21:52:01 +0100
+++ headers.c	2008-10-11 14:15:32 +0200
@@ -32,6 +32,9 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <time.h>
+#ifdef HAVE_GETTIMEOFDAY
+#include <sys/time.h>
+#endif
 #include <errno.h>
 
 #include <missing.h>
Index: protocol.c
--- protocol.c.orig	2005-02-03 20:04:58 +0100
+++ protocol.c	2008-10-11 14:16:48 +0200
@@ -38,6 +38,9 @@
 #include <missing.h> /* declarations for missing library functions */
 
 #include <sys/socket.h>
+#ifndef PF_UNSPEC
+#define PF_UNSPEC 0
+#endif
 #if HAVE_LWRES_NETDB_H
 # include <lwres/netdb.h>
 #elif !HAVE_GETADDRINFO
