1From 8db993c32f97188bdd6de4b2aa177fc513ee7e9f Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Sun, 15 Oct 2023 21:22:58 +0200
4Subject: [PATCH] src/compressor.h: fix build with gcc >= 13
5
6Fix the following build failure with gcc >= 13:
7
8In file included from ../src/compressor.c:3:
9../src/compressor.h:59:59: error: unknown type name 'size_t'
10   59 | int compressor_input(CompressorContext *c, const void *p, size_t sz);
11      |                                                           ^~~~~~
12../src/compressor.h:19:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
13   18 | #include "cacompression.h"
14  +++ |+#include <stddef.h>
15   19 |
16
17Fixes:
18 - http://autobuild.buildroot.org/results/ab08f3b90d253db45643dd058b80ae1dd5f49d0f
19
20Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
21Upstream: https://github.com/systemd/casync/pull/270
22---
23 src/compressor.h | 1 +
24 1 file changed, 1 insertion(+)
25
26diff --git a/src/compressor.h b/src/compressor.h
27index 2c9f93b..ae2eb30 100644
28--- a/src/compressor.h
29+++ b/src/compressor.h
30@@ -4,6 +4,7 @@
31 #define foocompresshorhfoo
32
33 #include <stdbool.h>
34+#include <stddef.h>
35
36 #if HAVE_LIBLZMA
37 #  include <lzma.h>
38--
392.42.0
40
41