27bc9576df
- Add csync2-librsync-1.0.0.patch: Fix build with librsync 1.0.0. OBS-URL: https://build.opensuse.org/request/show/293252 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=37
17 lines
667 B
Diff
17 lines
667 B
Diff
Index: csync2-2.0+git.1368794815.cf835a7/rsync.c
|
|
===================================================================
|
|
--- csync2-2.0+git.1368794815.cf835a7.orig/rsync.c
|
|
+++ csync2-2.0+git.1368794815.cf835a7/rsync.c
|
|
@@ -461,7 +461,11 @@ int csync_rs_sigfile(const char *filenam
|
|
goto out;
|
|
|
|
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, 8, RS_MD4_SIG_MAGIC, &stats);
|
|
+#endif
|
|
*sig_file_out = sig_file;
|
|
sig_file = NULL;
|
|
if (result != RS_DONE)
|