tools/e2fsprogs: add a darwin-compat patch
authorFelix Fietkau <[email protected]>
Wed, 15 Jul 2015 08:16:40 +0000 (08:16 +0000)
committerFelix Fietkau <[email protected]>
Wed, 15 Jul 2015 08:16:40 +0000 (08:16 +0000)
On darwin we need to import stdint to get these integer typedefs.

Patch by: Lawrence D'Anna <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
SVN-Revision: 46378

tools/e2fsprogs/patches/005-darwin-compat.patch [new file with mode: 0644]

diff --git a/tools/e2fsprogs/patches/005-darwin-compat.patch b/tools/e2fsprogs/patches/005-darwin-compat.patch
new file mode 100644 (file)
index 0000000..bc81d86
--- /dev/null
@@ -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