[PATCH v2 1/2] libcamera: add missing <stdint.h> include to base/file.h

Sergei Trofimovich slyich at gmail.com
Sun Aug 4 22:55:43 CEST 2024


Without the change the build fails on upcoming `gcc-15` as:

    In file included from ../src/libcamera/base/file.cpp:8:
    ../include/libcamera/base/file.h:62:33: error: 'uint8_t' was not declared in this scope
       62 |         ssize_t read(const Span<uint8_t> &data);
          |                                 ^~~~~~~

Signed-off-by: Sergei Trofimovich <slyich at gmail.com>
---
 include/libcamera/base/file.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/libcamera/base/file.h b/include/libcamera/base/file.h
index 5637934c..192668ab 100644
--- a/include/libcamera/base/file.h
+++ b/include/libcamera/base/file.h
@@ -7,6 +7,7 @@
 
 #pragma once
 
+#include <stdint.h>
 #include <sys/types.h>
 
 #include <map>
-- 
2.45.2



More information about the libcamera-devel mailing list