Get the new rsync code building

This commit is contained in:
Kovid Goyal
2023-07-18 19:10:43 +05:30
parent b5498090df
commit 05373c6e2a
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
static PyObject *RsyncError = NULL;
static const size_t default_block_size = 6 * 1024;
static const size_t signature_block_size = 20;
void log_error(const char *fmt, ...) { va_list args; va_start(args, fmt); vfprintf(stderr, fmt, args); va_end(args); }
// hashers {{{
typedef void*(*new_hash_t)(void);
@@ -536,7 +537,7 @@ finish_signature_data(Differ *self, PyObject *args UNUSED) {
static bool
send_op(Differ *self, Operation *op) {
uint8_t metadata[32];
size_t len;
size_t len = 0;
metadata[0] = op->type;
switch (op->type) {
case OpBlock:

View File

@@ -812,7 +812,7 @@ def compile_kittens(args: Options) -> None:
):
final_env = kenv.copy()
final_env.cflags.extend(f'-I{x}' for x in includes)
final_env.ldpaths[:0] = list(f'-l{x}' for x in libraries)
final_env.ldpaths[:0] = list(libraries)
compile_c_extension(
final_env, dest, args.compilation_database, sources, all_headers + ['kitty/data-types.h'])