diff options
author | Hirokazu MORIKAWA <morikw2@gmail.com> | 2023-05-18 09:41:16 +0900 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2023-05-18 10:28:36 +0300 |
commit | 992b529d2a4d88db5e83a9c2377ce798173f888d (patch) | |
tree | d68bc311255352ecce0f3ff49c65f015d4273ece /libs/libupm/patches | |
parent | 2251916df1ca5d1b00f0a55b52feb67cd65ae090 (diff) |
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 <morikw2@gmail.com>
Diffstat (limited to 'libs/libupm/patches')
-rw-r--r-- | libs/libupm/patches/011-gcc-13-compatibility-fixes.patch | 26 |
1 files changed, 26 insertions, 0 deletions
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 <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;} |