1 index() is a legacy function, not implemented in some uClibc
4 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 2 files changed, 2 insertions(+), 2 deletions(-)
10 Index: libmatchbox-1.9/libmb/mbexp.c
11 ===================================================================
12 --- libmatchbox-1.9.orig/libmb/mbexp.c
13 +++ libmatchbox-1.9/libmb/mbexp.c
18 - if (index(spec, ',') != NULL || index(spec, '-') != NULL)
19 + if (strchr(spec, ',') != NULL || strchr(spec, '-') != NULL)
20 has_comma_delim = True;
23 Index: libmatchbox-1.9/libmb/mbmenu.c
24 ===================================================================
25 --- libmatchbox-1.9.orig/libmb/mbmenu.c
26 +++ libmatchbox-1.9/libmb/mbmenu.c
31 - while(index("/\0", *p) == NULL) p++;
32 + while(strchr("/\0", *p) == NULL) p++;
33 if (*p != '\0') { *p = '\0'; p++; };
35 item = current->items;