Fix build on systems that lack VIDIOC_CREATE_BUFS definition
* v4l2.c (v4l2_ioctl): Check that v4l2_ioctl is defined.
This commit is contained in:
parent
69c1570d55
commit
fffe50d321
2
v4l2.c
2
v4l2.c
@ -592,6 +592,7 @@ v4l2_ioctl(struct tcb *tcp, const unsigned int code, long arg)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef VIDIOC_CREATE_BUFS
|
||||
case VIDIOC_CREATE_BUFS: {
|
||||
struct v4l2_create_buffers b;
|
||||
|
||||
@ -617,6 +618,7 @@ v4l2_ioctl(struct tcb *tcp, const unsigned int code, long arg)
|
||||
return 1 + RVAL_STR;
|
||||
}
|
||||
}
|
||||
#endif /* VIDIOC_CREATE_BUFS */
|
||||
|
||||
case VIDIOC_REQBUFS: {
|
||||
struct v4l2_requestbuffers reqbufs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user