summaryrefslogtreecommitdiff
path: root/package/mtd-utils/patches/patch-include_common_h
blob: 1109ab485dd12eb3caa51f6b2b2e2ebfd1e076ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- 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"