--- a/dbfile.h
+++ b/dbfile.h
@@ -7,6 +7,8 @@
#include <stdbool.h>
#include "util.h"
+#include <sys/types.h>
+
struct filerec;
struct block_csum;
struct extent_csum;