From: Dmitry V. Levin Date: Wed, 26 Aug 2015 11:55:05 +0000 (+0000) Subject: Fix build on systems that lack VIDIOC_CREATE_BUFS definition X-Git-Tag: v4.11~256 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fffe50d321653a90fa288ed0b486c2537c203955;p=strace Fix build on systems that lack VIDIOC_CREATE_BUFS definition * v4l2.c (v4l2_ioctl): Check that v4l2_ioctl is defined. --- diff --git a/v4l2.c b/v4l2.c index 6377717b..5b2426b2 100644 --- a/v4l2.c +++ b/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;