#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
+#include <sys/time.h>
#include <sys/types.h>
#ifdef SOCKET_AVAIL
# include HEADER_SOCKET
# include <arpa/inet.h>
# endif
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#ifdef _WIN32
#include <malloc.h>
#endif