summaryrefslogtreecommitdiffstats
path: root/meta-filesystems
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-13 22:40:12 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-24 18:57:35 +0200
commit35814672e7176d6d19db690cc9823bed271820fa (patch)
treeef06f0149694876f38cc498d3962aa5059b7a0cb /meta-filesystems
parent606e9b29eccfc5a61d8f58ef460da5e93119dd9c (diff)
downloadmeta-openembedded-35814672e7176d6d19db690cc9823bed271820fa.tar.gz
yaffs2-utils: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-filesystems')
-rw-r--r--meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils/0001-define-loff_t-if-not-already-defined.patch30
-rw-r--r--meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb3
2 files changed, 32 insertions, 1 deletions
diff --git a/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils/0001-define-loff_t-if-not-already-defined.patch b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils/0001-define-loff_t-if-not-already-defined.patch
new file mode 100644
index 000000000..df202c855
--- /dev/null
+++ b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils/0001-define-loff_t-if-not-already-defined.patch
@@ -0,0 +1,30 @@
1From 848717da4a28d33f8aa8f889377e61e6b1b8ae67 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 13 Jul 2017 18:29:52 -0700
4Subject: [PATCH] define loff_t if not already defined
5
6Helps to build with musl
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 yaffs_guts.h | 4 ++++
11 1 file changed, 4 insertions(+)
12
13diff --git a/yaffs_guts.h b/yaffs_guts.h
14index 6bcf12d..4af17ce 100644
15--- a/yaffs_guts.h
16+++ b/yaffs_guts.h
17@@ -18,6 +18,10 @@
18
19 #include "yportenv.h"
20
21+#ifndef loff_t
22+#define loff_t off_t
23+#endif
24+
25 #define YAFFS_OK 1
26 #define YAFFS_FAIL 0
27
28--
292.13.2
30
diff --git a/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb
index e8d187389..67c926b2c 100644
--- a/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb
+++ b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb
@@ -14,7 +14,8 @@ DEPENDS = "mtd-utils"
14# Source is the HEAD of master branch at the time of writing this recipe 14# Source is the HEAD of master branch at the time of writing this recipe
15SRC_URI = "git://www.aleph1.co.uk/yaffs2;protocol=git;branch=master \ 15SRC_URI = "git://www.aleph1.co.uk/yaffs2;protocol=git;branch=master \
16 file://makefile-add-ldflags.patch \ 16 file://makefile-add-ldflags.patch \
17 " 17 file://0001-define-loff_t-if-not-already-defined.patch \
18 "
18 19
19SRCREV = "bc76682d93955cfb33051beb503ad9f8a5450578" 20SRCREV = "bc76682d93955cfb33051beb503ad9f8a5450578"
20S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"