mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02:00
Get the new rsync code building
This commit is contained in:
@@ -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:
|
||||
|
||||
2
setup.py
2
setup.py
@@ -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'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user