From a8443f8695303401f561fe5747caab9b28672e9d Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 14 May 2016 00:36:27 +0000 Subject: [PATCH] v4l2: fix build with old kernel headers Prior to v2.6.25-rc3, 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 , , and before . --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b0758ae1..e50390e7 100644 --- a/configure.ac +++ b/configure.ac @@ -837,7 +837,10 @@ AC_CHECK_DECLS(m4_normalize([ V4L2_CTRL_TYPE_STRING, V4L2_CTRL_TYPE_BITMASK, V4L2_CTRL_TYPE_INTEGER_MENU -]),,, [#include ]) +]),,, [#include +#include +#include +#include ]) AC_CACHE_CHECK([for BLKGETSIZE64], [ac_cv_have_blkgetsize64], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ -- 2.40.0