@@ -0,0 +1,32 @@
+--- rsync.c.orig 2016-04-01 14:40:50.368258190 +0200
++++ rsync.c 2016-04-01 14:43:11.160366063 +0200
+@@ -318,8 +318,13 @@
+
+ if ( isreg ) {
+ csync_debug(3, "Running rs_sig_file() from librsync....\n");
+- result = rs_sig_file(basis_file, sig_file,
+- RS_DEFAULT_BLOCK_LEN, RS_DEFAULT_STRONG_LEN, &stats);
++ #ifdef RS_DEFAULT_STRONG_LEN
++ result = rs_sig_file(basis_file, sig_file,
++ RS_DEFAULT_BLOCK_LEN, RS_DEFAULT_STRONG_LEN, &stats);
++ #else
++ result = rs_sig_file(basis_file, sig_file,
++ RS_DEFAULT_BLOCK_LEN, RS_MD4_SIG_MAGIC, &stats);
++ #endif
+ if (result != RS_DONE) {
+ csync_debug(0, "Internal error from rsync library!\n");
+ goto error;
+@@ -405,8 +410,13 @@
+ if ( !basis_file ) basis_file = fopen("/dev/null", "rb");
+
+ csync_debug(3, "Running rs_sig_file() from librsync..\n");
++ #ifdef RS_DEFAULT_STRONG_LEN
+ result = rs_sig_file(basis_file, sig_file,
+ RS_DEFAULT_BLOCK_LEN, RS_DEFAULT_STRONG_LEN, &stats);
++ #else
++ result = rs_sig_file(basis_file, sig_file,
++ RS_DEFAULT_BLOCK_LEN, RS_MD4_SIG_MAGIC, &stats);
++ #endif
+ if (result != RS_DONE)
+ csync_fatal("Got an error from librsync, too bad!\n");
+
|