From: Dmitry V. Levin Date: Sat, 14 May 2016 00:36:27 +0000 (+0000) Subject: v4l2: fix build with old kernel headers X-Git-Tag: v4.12~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8443f8695303401f561fe5747caab9b28672e9d;p=strace 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 . --- 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([