Workaround for errors with GCC13
https://github.com/openwrt/packages/issues/20994
patch
https://github.com/oskarirauta/local-overrides/blob/main/libs/libupm/patches/011-gcc-13-compatibility-fixes.patch
Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_NAME:=libupm
PKG_VERSION:=2.0.0
-PKG_RELEASE:=6
+PKG_RELEASE:=7
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/intel-iot-devkit/upm/tar.gz/v$(PKG_VERSION)?
--- /dev/null
+--- a/src/mcp9808/mcp9808.hpp
++++ b/src/mcp9808/mcp9808.hpp
+@@ -30,6 +30,10 @@
+ #include <string>
+ #include <interfaces/iTemperature.hpp>
+
++#ifndef uint8_t
++#include <cstdint>
++#endif
++
+ #define MCP9808_REG_CONFIG 0x01
+ #define MCP9808_REG_AMBIENT_TEMP 0x05
+ #define MCP9808_REG_MANUF_ID 0x06
+--- a/src/micsv89/micsv89.hpp
++++ b/src/micsv89/micsv89.hpp
+@@ -27,6 +27,10 @@
+ #include <iostream>
+ #include <string>
+
++#ifndef uint8_t
++#include <cstdint>
++#endif
++
+ #include <interfaces/iGas.hpp>
+
+ namespace mraa { class I2c;}