mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 23:48:39 +01:00
libv4l: Update version to 1.10.0. Fix musl/uClibc incompatibility with getsubopt()
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
--- a/utils/v4l2-ctl/v4l2-ctl-common.cpp
|
||||
+++ b/utils/v4l2-ctl/v4l2-ctl-common.cpp
|
||||
@@ -671,15 +671,18 @@ static bool parse_subset(char *optarg)
|
||||
|
||||
static bool parse_next_subopt(char **subs, char **value)
|
||||
{
|
||||
- static char *const subopts[] = {
|
||||
- NULL
|
||||
- };
|
||||
- int opt = getsubopt(subs, subopts, value);
|
||||
+ char *stmp = *subs;
|
||||
+ *value = NULL;
|
||||
|
||||
- if (opt < 0 || *value)
|
||||
+ if (*subs) {
|
||||
+ *subs = strchr(stmp, ',');
|
||||
+ if (*subs)
|
||||
+ *(*subs)++ = 0;
|
||||
+ else *subs = stmp + strlen(stmp);
|
||||
+
|
||||
+ *value = stmp;
|
||||
return false;
|
||||
- fprintf(stderr, "No value given to suboption <%s>\n",
|
||||
- subopts[opt]);
|
||||
+ }
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user