From: Hirokazu MORIKAWA Date: Thu, 18 May 2023 00:41:16 +0000 (+0900) Subject: libupm: Workaround for errors with GCC13 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=992b529d2a4d88db5e83a9c2377ce798173f888d;p=openwrt-packages.git libupm: Workaround for errors with GCC13 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 --- diff --git a/libs/libupm/Makefile b/libs/libupm/Makefile index 058dedf9b..3f7c3e608 100644 --- a/libs/libupm/Makefile +++ b/libs/libupm/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk 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)? diff --git a/libs/libupm/patches/011-gcc-13-compatibility-fixes.patch b/libs/libupm/patches/011-gcc-13-compatibility-fixes.patch new file mode 100644 index 000000000..feed25e95 --- /dev/null +++ b/libs/libupm/patches/011-gcc-13-compatibility-fixes.patch @@ -0,0 +1,26 @@ +--- a/src/mcp9808/mcp9808.hpp ++++ b/src/mcp9808/mcp9808.hpp +@@ -30,6 +30,10 @@ + #include + #include + ++#ifndef uint8_t ++#include ++#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 + #include + ++#ifndef uint8_t ++#include ++#endif ++ + #include + + namespace mraa { class I2c;}