--- a/src/t_timer.c
+++ b/src/t_timer.c
@@ -33,6 +33,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/time.h>
+#include <sys/types.h>
 
 #include "timer.h"
 
--- a/src/t_uuid.c
+++ b/src/t_uuid.c
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/time.h>
+#include <sys/types.h>
 
 #include "iperf_util.h"