--- tests/mpfi-tests.h.orig	2019-08-01 20:07:19 UTC
+++ tests/mpfi-tests.h
@@ -27,6 +27,7 @@ MA 02110-1301, USA. */
 #ifndef __MPFI_TESTS_H__
 #define __MPFI_TESTS_H__
 
+#include <sys/types.h>
 #include <stdlib.h>
 
 #include "mpfi_io.h"
