From 39e092a06ed79a98e3842f9d897c089a132eaa58 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 15 Oct 2023 21:45:11 +0200 Subject: [PATCH] package/casync: fix build with gcc >= 13 Fix the following build failure with gcc >= 13: In file included from ../src/compressor.c:3: ../src/compressor.h:59:59: error: unknown type name 'size_t' 59 | int compressor_input(CompressorContext *c, const void *p, size_t sz); | ^~~~~~ ../src/compressor.h:19:1: note: 'size_t' is defined in header ''; did you forget to '#include '? 18 | #include "cacompression.h" +++ |+#include 19 | Fixes: - http://autobuild.buildroot.org/results/ab08f3b90d253db45643dd058b80ae1dd5f49d0f Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle --- ...c-compressor.h-fix-build-with-gcc-13.patch | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch diff --git a/package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch b/package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch new file mode 100644 index 000000000000..32af9142a731 --- /dev/null +++ b/package/casync/0001-src-compressor.h-fix-build-with-gcc-13.patch @@ -0,0 +1,40 @@ +From 8db993c32f97188bdd6de4b2aa177fc513ee7e9f Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Sun, 15 Oct 2023 21:22:58 +0200 +Subject: [PATCH] src/compressor.h: fix build with gcc >= 13 + +Fix the following build failure with gcc >= 13: + +In file included from ../src/compressor.c:3: +../src/compressor.h:59:59: error: unknown type name 'size_t' + 59 | int compressor_input(CompressorContext *c, const void *p, size_t sz); + | ^~~~~~ +../src/compressor.h:19:1: note: 'size_t' is defined in header ''; did you forget to '#include '? + 18 | #include "cacompression.h" + +++ |+#include + 19 | + +Fixes: + - http://autobuild.buildroot.org/results/ab08f3b90d253db45643dd058b80ae1dd5f49d0f + +Signed-off-by: Fabrice Fontaine +Upstream: https://github.com/systemd/casync/pull/270 +--- + src/compressor.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/compressor.h b/src/compressor.h +index 2c9f93b..ae2eb30 100644 +--- a/src/compressor.h ++++ b/src/compressor.h +@@ -4,6 +4,7 @@ + #define foocompresshorhfoo + + #include ++#include + + #if HAVE_LIBLZMA + # include +-- +2.42.0 +