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>.
This commit is contained in:
parent
3cc989e7fc
commit
a8443f8695
@ -837,7 +837,10 @@ AC_CHECK_DECLS(m4_normalize([
|
||||
V4L2_CTRL_TYPE_STRING,
|
||||
V4L2_CTRL_TYPE_BITMASK,
|
||||
V4L2_CTRL_TYPE_INTEGER_MENU
|
||||
]),,, [#include <linux/videodev2.h>])
|
||||
]),,, [#include <sys/time.h>
|
||||
#include <linux/ioctl.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/videodev2.h>])
|
||||
|
||||
AC_CACHE_CHECK([for BLKGETSIZE64], [ac_cv_have_blkgetsize64],
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
||||
|
Loading…
x
Reference in New Issue
Block a user