]> granicus.if.org Git - strace/commit
v4l2: fix build with old kernel headers
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 14 May 2016 00:36:27 +0000 (00:36 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 14 May 2016 00:36:27 +0000 (00:36 +0000)
commita8443f8695303401f561fe5747caab9b28672e9d
tree8143a425ab7d110eddb0d7a6f91a535b1b776f3c
parent3cc989e7fc52a1d0be5426848361d369263e7179
v4l2: fix build with old kernel headers

Prior to v2.6.25-rc3, <linux/videodev2.h> didn't include all
required headers, resulting to omission of V4L2_* constants.

This issue doesn't arise in v4l2.c and tests/ioctl_v4l2.c files
because they already include all necessary headers themselves.

* configure.ac (AC_CHECK_DECLS): Include <sys/time.h>, <linux/ioctl.h>,
and <linux/types.h> before <linux/videodev2.h>.
configure.ac