[2/2] include/libcamera/internal/yaml_parser.h: add missing <stdint.h> include
diff mbox series

Message ID 20240804060400.2790695-2-slyich@gmail.com
State New
Headers show
Series
  • [1/2] include/libcamera/base/file.h: add missing <stdint.h> include
Related show

Commit Message

Sergei Trofimovich Aug. 4, 2024, 6:04 a.m. UTC
Without the change the build fails on upcoming `gcc-15` as:

    In file included from ../src/libcamera/yaml_parser.cpp:8:
    ../include/libcamera/internal/yaml_parser.h:183:41: error: 'uint8_t' was not declared in this scope
      183 |                          std::is_same_v<uint8_t, T> ||
          |                                         ^~~~~~~
---
 include/libcamera/internal/yaml_parser.h | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox series

diff --git a/include/libcamera/internal/yaml_parser.h b/include/libcamera/internal/yaml_parser.h
index e38a2df9..f8e4f841 100644
--- a/include/libcamera/internal/yaml_parser.h
+++ b/include/libcamera/internal/yaml_parser.h
@@ -7,6 +7,8 @@ 
 
 #pragma once
 
+#include <stdint.h>
+
 #include <iterator>
 #include <map>
 #include <optional>