summaryrefslogtreecommitdiffstats
path: root/meta-efl/recipes-multimedia/lightmediascanner
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-13 22:40:01 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-24 18:57:34 +0200
commit4ff2e26dedff9caa14ffef57a7002b0fd021c17d (patch)
tree8d4a0f332c5fad4b72cb09977f18dc996b94e8db /meta-efl/recipes-multimedia/lightmediascanner
parent102f98c142edadb1424f214a027cec986e713eef (diff)
downloadmeta-openembedded-4ff2e26dedff9caa14ffef57a7002b0fd021c17d.tar.gz
lightmediascanner: Define comparison_fn_t if undefined
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-efl/recipes-multimedia/lightmediascanner')
-rw-r--r--meta-efl/recipes-multimedia/lightmediascanner/files/0001-Define-comparison_fn_t-for-non-glibc-systems.patch33
-rw-r--r--meta-efl/recipes-multimedia/lightmediascanner/lightmediascanner_0.5.1.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-efl/recipes-multimedia/lightmediascanner/files/0001-Define-comparison_fn_t-for-non-glibc-systems.patch b/meta-efl/recipes-multimedia/lightmediascanner/files/0001-Define-comparison_fn_t-for-non-glibc-systems.patch
new file mode 100644
index 000000000..15d4b3f0e
--- /dev/null
+++ b/meta-efl/recipes-multimedia/lightmediascanner/files/0001-Define-comparison_fn_t-for-non-glibc-systems.patch
@@ -0,0 +1,33 @@
1From 5bc5b8c5dad3edec6736fd7e7ce61250c4ce3725 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 12 Jul 2017 17:13:19 -0700
4Subject: [PATCH] Define comparison_fn_t for non-glibc systems
5
6lightmediascanner.c:324:12: error: 'comparison_fn_t' undeclared (first use in this function)
7 (comparison_fn_t)_plugin_sort);
8 ^~~~~~~~~~~~~~~
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/lib/lightmediascanner.c | 5 +++++
13 1 file changed, 5 insertions(+)
14
15diff --git a/src/lib/lightmediascanner.c b/src/lib/lightmediascanner.c
16index 344b247..b866883 100644
17--- a/src/lib/lightmediascanner.c
18+++ b/src/lib/lightmediascanner.c
19@@ -37,6 +37,11 @@
20 #define DEFAULT_SLAVE_TIMEOUT 1000
21 #define DEFAULT_COMMIT_INTERVAL 100
22
23+#if !defined(__GLIBC__)
24+typedef int (*__compar_fn_t) (const void*, const void*);
25+typedef __compar_fn_t comparison_fn_t;
26+#endif
27+
28 #ifdef HAVE_MAGIC_H
29 static magic_t _magic_handle;
30
31--
322.13.2
33
diff --git a/meta-efl/recipes-multimedia/lightmediascanner/lightmediascanner_0.5.1.bb b/meta-efl/recipes-multimedia/lightmediascanner/lightmediascanner_0.5.1.bb
index d8c6dbb73..f2158760f 100644
--- a/meta-efl/recipes-multimedia/lightmediascanner/lightmediascanner_0.5.1.bb
+++ b/meta-efl/recipes-multimedia/lightmediascanner/lightmediascanner_0.5.1.bb
@@ -12,6 +12,7 @@ PV = "0.5.1+git${SRCPV}"
12SRCREV = "adfddb3486276a5ed2f5008c9e43a811e1271cc9" 12SRCREV = "adfddb3486276a5ed2f5008c9e43a811e1271cc9"
13SRC_URI = "git://github.com/profusion/lightmediascanner.git \ 13SRC_URI = "git://github.com/profusion/lightmediascanner.git \
14 file://id3-plugin-support-out-of-tree-build.patch \ 14 file://id3-plugin-support-out-of-tree-build.patch \
15 file://0001-Define-comparison_fn_t-for-non-glibc-systems.patch \
15 " 16 "
16 17
17S = "${WORKDIR}/git" 18S = "${WORKDIR}/git"