tools/kernel2minor: fix portability issue
authorFelix Fietkau <nbd@nbd.name>
Thu, 5 Jan 2017 16:21:51 +0000 (17:21 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 6 Jan 2017 14:34:19 +0000 (15:34 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
tools/kernel2minor/patches/100-portability.patch [new file with mode: 0644]

diff --git a/tools/kernel2minor/patches/100-portability.patch b/tools/kernel2minor/patches/100-portability.patch
new file mode 100644 (file)
index 0000000..43340ae
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/yaffs2/yaffs_guts.h
++++ b/yaffs2/yaffs_guts.h
+@@ -17,8 +17,9 @@
+ #define __YAFFS_GUTS_H__
+ #include "yportenv.h"
++#include <stdint.h>
+-typedef __loff_t loff_t;
++typedef int64_t loff_t;
+ #define YAFFS_OK      1
+ #define YAFFS_FAIL  0