tools/e2fsprogs: add a darwin-compat patch

On darwin we need to import stdint to get these integer typedefs.

Patch by: Lawrence D'Anna <larry@elder-gods.org>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46378
lede-17.01
Felix Fietkau 2015-07-15 08:16:40 +00:00
parent e23c3bb339
commit 52ea491bdf
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
--- a/lib/blkid/blkid_types.h.in
+++ b/lib/blkid/blkid_types.h.in
@@ -9,6 +9,8 @@
@ASM_TYPES_HEADER@
+#include <stdint.h>
+
#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,8 @@
@ASM_TYPES_HEADER@
+#include <stdint.h>
+
#ifdef __U8_TYPEDEF
typedef __U8_TYPEDEF __u8;
#else