diff --git a/ProcessUNIX.c b/ProcessUNIX.c
index 7ce5885ac358b59cdd96ed6908cc997b4c8ec772..e2a98d19216b94646e0bba5434bbc06183004c1f 100644
--- a/ProcessUNIX.c
+++ b/ProcessUNIX.c
@@ -50,6 +50,7 @@ do.
 #include <sys/time.h>  /* struct timeval */
 #include <sys/types.h> /* pid_t, fd_set */
 #include <sys/wait.h>  /* waitpid */
+#include <sys/stat.h>  /* open mode */
 #include <unistd.h>    /* pipe, close, fork, execvp, select, _exit */
 #include <fcntl.h>     /* fcntl */
 #include <errno.h>     /* errno */