[libcamera-devel] [PATCH] libcamera: formats: Add missing include
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Wed Jun 19 16:48:33 CEST 2019
Hi Jacpo,
Thank you for the patch.
On Wed, Jun 19, 2019 at 04:49:17PM +0200, Jacopo Mondi wrote:
> Include errno.h header to fix missing definition of -EEXIST error code:
> src/libcamera/formats.cpp:43:11: error: use of undeclared identifier 'EEXIST'
>
> Fixes: 1cf709b1d2bb ("libcamera: formats: Add ImageFormats")
> Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
> src/libcamera/formats.cpp | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp
> index f1a62d47e678..ee4572e01332 100644
> --- a/src/libcamera/formats.cpp
> +++ b/src/libcamera/formats.cpp
> @@ -7,6 +7,8 @@
>
> #include "formats.h"
>
> +#include <errno.h>
> +
> /**
> * \file formats.h
> * \brief Types and helper methods to handle libcamera image formats
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list