Index: socket.c
--- socket.c.orig	2008-11-13 12:48:47 +0100
+++ socket.c	2008-11-17 13:59:21 +0100
@@ -9,6 +9,8 @@
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
+#include <time.h>
+#include <sys/time.h>
 #include <ctype.h> /* isspace() */
 #ifdef HAVE_MEMORY_H
 #include <memory.h>
