--- mtd-utils-2.0.0.orig/include/common.h	2016-12-14 10:06:35.000000000 +0100
+++ mtd-utils-2.0.0/include/common.h	2017-04-26 01:52:28.000000000 +0200
@@ -26,10 +26,15 @@
 #include <string.h>
 #include <fcntl.h>
 #include <errno.h>
+#ifndef __APPLE__
 #include <features.h>
+#include <sys/sysmacros.h>
+#endif
 #include <inttypes.h>
 #include <unistd.h>
-#include <sys/sysmacros.h>
+
+#include <time.h>
+#include "os-compat.h"
 
 #include "config.h"
 
