From 4a91ccf9ffe5e64f5783af4ab8afa5afae1280b5 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Thu, 23 May 2024 07:04:03 +0000 Subject: [PATCH] tslib: fix gcc-14 build temporary fix until tslib can be updated fixes missing header src/ts_reconfig.c: In function 'ts_reconfig': src/ts_reconfig.c:43:9: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 43 | memset(ts, 0, sizeof(struct tsdev)); | ^~~~~~ src/ts_reconfig.c:21:1: note: include '' or provide a declaration of 'memset' 20 | #include "tslib-private.h" +++ |+#include 21 | src/ts_reconfig.c:43:9: warning:incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 43 | memset(ts, 0, sizeof(struct tsdev)); | ^~~~~~ src/ts_reconfig.c:43:9: note: include '' or provide a declaration of 'memset' --- .../tslib/patches/tslib-40-fix-gcc-14-1.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 packages/addons/addon-depends/tslib/patches/tslib-40-fix-gcc-14-1.patch diff --git a/packages/addons/addon-depends/tslib/patches/tslib-40-fix-gcc-14-1.patch b/packages/addons/addon-depends/tslib/patches/tslib-40-fix-gcc-14-1.patch new file mode 100644 index 0000000000..ebe66e28c9 --- /dev/null +++ b/packages/addons/addon-depends/tslib/patches/tslib-40-fix-gcc-14-1.patch @@ -0,0 +1,10 @@ +--- a/src/ts_reconfig.c 2024-05-23 07:01:59.264165839 +0000 ++++ b/src/ts_reconfig.c 2024-05-23 07:01:54.034129359 +0000 +@@ -16,6 +16,7 @@ + #include + #endif + #include ++#include + + #include "tslib-private.h" +