Skip to content

Commit e6817a7

Browse files
ffontainebluca
authored andcommitted
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 '<stddef.h>'; did you forget to '#include <stddef.h>'? 18 | #include "cacompression.h" +++ |+#include <stddef.h> 19 | Fixes: - http://autobuild.buildroot.org/results/ab08f3b90d253db45643dd058b80ae1dd5f49d0f Signed-off-by: Fabrice Fontaine <[email protected]>
1 parent 0efa7ab commit e6817a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compressor.h

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#define foocompresshorhfoo
55

66
#include <stdbool.h>
7+
#include <stddef.h>
78

89
#if HAVE_LIBLZMA
910
# include <lzma.h>

0 commit comments

Comments
 (0)