Fix conflict.
[rsync-patches.git] / xxh3.diff
1 This patch adds the current XXH3 checksum algorithms to rsync. They
2 are not yet finalized, so do NOT use this in a distributed rsync yet!
3
4 To use this patch, run these commands for a successful build:
5
6     patch -p1 <patches/xxh3.diff
7     ./configure                         (optional if already run)
8     make
9
10 based-on: 194cee671d5e178f20c4494f41911fa8db942935
11 diff --git a/checksum.c b/checksum.c
12 --- a/checksum.c
13 +++ b/checksum.c
14 @@ -26,11 +26,13 @@
15   * with this program; if not, visit the http://fsf.org website.
16   */
17  
18 +#define XXH_INLINE_ALL /* define to test pre-release XXH3 & XXH128 -- CURRENTLY UNSTABLE */
19 +
20  #include "rsync.h"
21  
22  #ifdef SUPPORT_XXHASH
23  #include "xxhash.h"
24 -# if XXH_VERSION_NUMBER >= 800
25 +# if XXH_VERSION_NUMBER >= 800 || defined XXH_INLINE_ALL
26  #  define SUPPORT_XXH3 1
27  # endif
28  #endif