[libcamera-devel] [PATCH] v4l2: camera_proxy: Include <array>

Laurent Pinchart laurent.pinchart at ideasonboard.com
Tue Jan 7 23:30:40 CET 2020


Commit 29c5508075c1 ("v4l2: camera_proxy: Create format info array")
introduced usage of the std::array template class, but didn't include
the corresponding header. This may cause a compilation breakage in the
future if the indirect include of <array> disappears due to unrelated
changes. Fix it.

Fixed: 29c5508075c1 ("v4l2: camera_proxy: Create format info array")
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 src/v4l2/v4l2_camera_proxy.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/v4l2/v4l2_camera_proxy.cpp b/src/v4l2/v4l2_camera_proxy.cpp
index bdd4a6c3475d..8d1b40da7367 100644
--- a/src/v4l2/v4l2_camera_proxy.cpp
+++ b/src/v4l2/v4l2_camera_proxy.cpp
@@ -8,6 +8,7 @@
 #include "v4l2_camera_proxy.h"
 
 #include <algorithm>
+#include <array>
 #include <errno.h>
 #include <linux/drm_fourcc.h>
 #include <linux/videodev2.h>
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list