[OpenWrt-Devel] [PATCH] tools/e2fsprogs: add a darwin-compat patch
Lawrence D'Anna
larry at elder-gods.org
Tue Mar 17 02:41:10 EDT 2015
On darwin we need to import stdint to get these integer typedefs.
---
tools/e2fsprogs/patches/005-darwin-compat.patch | 26 +++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 tools/e2fsprogs/patches/005-darwin-compat.patch
diff --git a/tools/e2fsprogs/patches/005-darwin-compat.patch b/tools/e2fsprogs/patches/005-darwin-compat.patch
new file mode 100644
index 0000000..8a1db91
--- /dev/null
+++ b/tools/e2fsprogs/patches/005-darwin-compat.patch
@@ -0,0 +1,26 @@
+--- a/lib/blkid/blkid_types.h.in
++++ b/lib/blkid/blkid_types.h.in
+@@ -9,6 +9,10 @@
+
+ @ASM_TYPES_HEADER@
+
++#if __APPLE__
++#include <stdint.h>
++#endif
++
+ #ifdef __U8_TYPEDEF
+ typedef __U8_TYPEDEF __u8;
+ #else
+--- a/lib/ext2fs/ext2_types.h.in
++++ b/lib/ext2fs/ext2_types.h.in
+@@ -9,6 +9,10 @@
+
+ @ASM_TYPES_HEADER@
+
++#if __APPLE__
++#include <stdint.h>
++#endif
++
+ #ifdef __U8_TYPEDEF
+ typedef __U8_TYPEDEF __u8;
+ #else
--
2.3.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list