systemd / casync

Content-Addressable Data Synchronization Tool
1.49k stars 117 forks source link

src/compressor.h: fix build with gcc >= 13 #270

Closed ffontaine closed 9 months ago

ffontaine commented 9 months ago

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: