--- ./include/vpf.h.orig
+++ ./include/vpf.h
@@ -30,6 +30,8 @@
 #ifndef VPF_H_INCLUDED
 #define VPF_H_INCLUDED
 
+#include <sys/stat.h>
+
 struct vpf_fh;
 
 struct vpf_fh *VPF_Open(const char *path, mode_t mode, pid_t *pidptr);
