Skip to content

Commit fffe50d

Browse files
committed
Fix build on systems that lack VIDIOC_CREATE_BUFS definition
* v4l2.c (v4l2_ioctl): Check that v4l2_ioctl is defined.
1 parent 69c1570 commit fffe50d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

v4l2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ v4l2_ioctl(struct tcb *tcp, const unsigned int code, long arg)
592592
return 1;
593593
}
594594

595+
#ifdef VIDIOC_CREATE_BUFS
595596
case VIDIOC_CREATE_BUFS: {
596597
struct v4l2_create_buffers b;
597598

@@ -617,6 +618,7 @@ v4l2_ioctl(struct tcb *tcp, const unsigned int code, long arg)
617618
return 1 + RVAL_STR;
618619
}
619620
}
621+
#endif /* VIDIOC_CREATE_BUFS */
620622

621623
case VIDIOC_REQBUFS: {
622624
struct v4l2_requestbuffers reqbufs;

0 commit comments

Comments
 (0)