[libcamera-devel] [PATCH] libcamera: stream: Include missing array header

Laurent Pinchart laurent.pinchart at ideasonboard.com
Wed Jun 19 16:50:17 CEST 2019


On Wed, Jun 19, 2019 at 05:41:58PM +0300, Laurent Pinchart wrote:
> The file uses the std::array class but doesn't include the corresponding
> header. This breaks compilation with clang and libc++. Fix it.
> 

Fixes: 63c578ed9993 ("libcamera: stream: Add StreamFormats")

> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
>  src/libcamera/stream.cpp | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp
> index d60f83246e13..d8e87c62281c 100644
> --- a/src/libcamera/stream.cpp
> +++ b/src/libcamera/stream.cpp
> @@ -8,6 +8,7 @@
>  #include <libcamera/stream.h>
>  
>  #include <algorithm>
> +#include <array>
>  #include <climits>
>  #include <iomanip>
>  #include <sstream>

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list