--- mtd-utils-2.0.0.orig/misc-utils/docfdisk.c	2016-12-14 10:06:35.000000000 +0100
+++ mtd-utils-2.0.0/misc-utils/docfdisk.c	2017-04-26 08:56:40.000000000 +0200
@@ -19,6 +19,7 @@
 #define PROGRAM_NAME "docfdisk"
 
 #define _XOPEN_SOURCE 500 /* for pread/pwrite */
+#include <sys/types.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
