[RFC PATCH v2 11/13] apps: ppm_writer: Add a missing include

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sat Jan 25 21:12:39 CET 2025


Hi Milan,

Thank you for the patch.

On Fri, Jan 24, 2025 at 10:58:02PM +0100, Milan Zamazal wrote:
> <errno.h> should be included in the ppm writer, as the source of the
> error code constants used there.
> 
> Signed-off-by: Milan Zamazal <mzamazal at redhat.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>

> ---
>  src/apps/common/ppm_writer.cpp | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/apps/common/ppm_writer.cpp b/src/apps/common/ppm_writer.cpp
> index d6c8641d..2e9378aa 100644
> --- a/src/apps/common/ppm_writer.cpp
> +++ b/src/apps/common/ppm_writer.cpp
> @@ -7,6 +7,7 @@
>  
>  #include "ppm_writer.h"
>  
> +#include <errno.h>
>  #include <fstream>
>  #include <iostream>
>  

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list