summaryrefslogtreecommitdiff
path: root/package/mtd-utils/patches/patch-include_common_h
diff options
context:
space:
mode:
Diffstat (limited to 'package/mtd-utils/patches/patch-include_common_h')
-rw-r--r--package/mtd-utils/patches/patch-include_common_h19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/mtd-utils/patches/patch-include_common_h b/package/mtd-utils/patches/patch-include_common_h
new file mode 100644
index 000000000..1109ab485
--- /dev/null
+++ b/package/mtd-utils/patches/patch-include_common_h
@@ -0,0 +1,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"
+