]> git.pld-linux.org Git - packages/csync2.git/blame - librsync.patch
- fix building with librsync 1.0+
[packages/csync2.git] / librsync.patch
CommitLineData
7c801a36
JR
1--- csync2-2.0/rsync.c~ 2013-05-02 13:19:36.000000000 +0200
2+++ csync2-2.0/rsync.c 2018-04-22 13:19:46.761262945 +0200
3@@ -461,7 +461,11 @@
4 goto out;
5
6 csync_debug(3, "Running rs_sig_file() from librsync....\n");
7+#ifdef RS_DEFAULT_STRONG_LEN
8 result = rs_sig_file(basis_file, sig_file, RS_DEFAULT_BLOCK_LEN, RS_DEFAULT_STRONG_LEN, &stats);
9+#else /* librsync >= 1.0.0 */
10+ result = rs_sig_file(basis_file, sig_file,RS_DEFAULT_BLOCK_LEN, 8, RS_MD4_SIG_MAGIC, &stats);
11+#endif
12 *sig_file_out = sig_file;
13 sig_file = NULL;
14 if (result != RS_DONE)
This page took 0.060286 seconds and 4 git commands to generate.