--- ./lib/libvarnishapi/vxp_lexer.c.orig
+++ ./lib/libvarnishapi/vxp_lexer.c
@@ -33,6 +33,7 @@
 #include <ctype.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/types.h>
 
 #include "vdef.h"
 #include "vas.h"
--- ./lib/libvarnishapi/vxp.c.orig
+++ ./lib/libvarnishapi/vxp.c
@@ -33,6 +33,7 @@
 #include <ctype.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/types.h>
 
 #include "vdef.h"
 #include "vas.h"
--- ./bin/varnishtest/vtc_barrier.c.orig
+++ ./bin/varnishtest/vtc_barrier.c
@@ -35,6 +35,7 @@
 #include <unistd.h>
 
 #include <sys/socket.h>
+#include <sys/time.h>
 
 #include "vtc.h"
 #include "vtcp.h"
