summaryrefslogtreecommitdiffstats
path: root/package/matchbox/matchbox-lib/matchbox-lib-0001-index-is-legacy.patch
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2014-02-21 13:53:16 +0000
committerPeter Korsgaard <peter@korsgaard.com>2014-02-21 22:08:59 +0100
commit6080b2228cb1c5b46645a200bb22f55f23ed6660 (patch)
treea8677f31c88eead6e8d91de133ddcb8b937af531 /package/matchbox/matchbox-lib/matchbox-lib-0001-index-is-legacy.patch
parent1889207631a87bedbf6c47329a8fcde0124d4d2a (diff)
matchbox-lib: rename patches to follow BR guidelines
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/matchbox/matchbox-lib/matchbox-lib-0001-index-is-legacy.patch')
-rw-r--r--package/matchbox/matchbox-lib/matchbox-lib-0001-index-is-legacy.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/matchbox/matchbox-lib/matchbox-lib-0001-index-is-legacy.patch b/package/matchbox/matchbox-lib/matchbox-lib-0001-index-is-legacy.patch
new file mode 100644
index 000000000..b486fb18d
--- /dev/null
+++ b/package/matchbox/matchbox-lib/matchbox-lib-0001-index-is-legacy.patch
@@ -0,0 +1,35 @@
+index() is a legacy function, not implemented in some uClibc
+configurations.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ libmb/mbexp.c | 2 +-
+ libmb/mbmenu.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+Index: libmatchbox-1.9/libmb/mbexp.c
+===================================================================
+--- libmatchbox-1.9.orig/libmb/mbexp.c
++++ libmatchbox-1.9/libmb/mbexp.c
+@@ -492,7 +492,7 @@
+
+ /* get the family */
+
+- if (index(spec, ',') != NULL || index(spec, '-') != NULL)
++ if (strchr(spec, ',') != NULL || strchr(spec, '-') != NULL)
+ has_comma_delim = True;
+
+ while (!got_family) {
+Index: libmatchbox-1.9/libmb/mbmenu.c
+===================================================================
+--- libmatchbox-1.9.orig/libmb/mbmenu.c
++++ libmatchbox-1.9/libmb/mbmenu.c
+@@ -433,7 +433,7 @@
+ {
+ s = p;
+ found = NULL;
+- while(index("/\0", *p) == NULL) p++;
++ while(strchr("/\0", *p) == NULL) p++;
+ if (*p != '\0') { *p = '\0'; p++; };
+
+ item = current->items;