From 7d9d71e67f8763b0db96545e124c002fe0ba7e73 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 26 Apr 2017 08:58:17 +0200 Subject: mtd-utils: allow host-tools to compile on Darwin Signed-off-by: Waldemar Brodkorb --- .../patches/patch-ubifs-utils_mkfs_ubifs_defs_h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 package/mtd-utils/patches/patch-ubifs-utils_mkfs_ubifs_defs_h (limited to 'package/mtd-utils/patches/patch-ubifs-utils_mkfs_ubifs_defs_h') diff --git a/package/mtd-utils/patches/patch-ubifs-utils_mkfs_ubifs_defs_h b/package/mtd-utils/patches/patch-ubifs-utils_mkfs_ubifs_defs_h new file mode 100644 index 000000000..e3f61b1e7 --- /dev/null +++ b/package/mtd-utils/patches/patch-ubifs-utils_mkfs_ubifs_defs_h @@ -0,0 +1,18 @@ +--- mtd-utils-2.0.0.orig/ubifs-utils/mkfs.ubifs/defs.h 2016-07-12 14:16:45.000000000 +0200 ++++ mtd-utils-2.0.0/ubifs-utils/mkfs.ubifs/defs.h 2017-04-26 01:55:07.000000000 +0200 +@@ -39,6 +39,7 @@ struct qstr + size_t len; + }; + ++#ifndef __APPLE__ + /** + * fls - find last (most-significant) bit set + * @x: the word to search +@@ -74,6 +75,7 @@ static inline int fls(int x) + } + return r; + } ++#endif + + #define do_div(n,base) ({ \ + int __res; \ -- cgit v1.2.3