17 lines
335 B
Text
17 lines
335 B
Text
Avoid syscall(2) usage
|
|
|
|
Index: lib/libv4l1/libv4l1.c
|
|
--- lib/libv4l1/libv4l1.c.orig
|
|
+++ lib/libv4l1/libv4l1.c
|
|
@@ -472,7 +472,11 @@ int v4l1_dup(int fd)
|
|
int index = v4l1_get_index(fd);
|
|
|
|
if (index == -1)
|
|
+#ifdef CONFIG_SYS_WRAPPER
|
|
+ return dup(fd);
|
|
+#else
|
|
return syscall(SYS_dup, fd);
|
|
+#endif
|
|
|
|
devices[index].open_count++;
|
|
|