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:
Дмитрий Левин 2015-08-26 11:55:05 +00:00
parent 69c1570d55
commit fffe50d321

2
v4l2.c
View File

@ -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;