Explorar o código

fixup: include xxhash.c

when including .h (as usual), one runs into this:

building 'borg.algorithms.checksums' extension
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/user/w/borg-env/include -I/home/user/.pyenv/versions/3.5.3/include/python3.5m -c src/borg/algorithms/checksums.c -o build/temp.linux-x86_64-3.5/src/borg/algorithms/checksums.o
    src/borg/algorithms/checksums.c:838:17: error: field ‘state’ has incomplete type
       XXH64_state_t state;
                     ^~~~~

when including .c, it works!
Thomas Waldmann %!s(int64=4) %!d(string=hai) anos
pai
achega
40fb6b38de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/algorithms/xxhash-libselect.h

+ 1 - 1
src/borg/algorithms/xxhash-libselect.h

@@ -1,5 +1,5 @@
 #ifdef BORG_USE_LIBXXHASH
 #ifdef BORG_USE_LIBXXHASH
 #include <xxhash.h>
 #include <xxhash.h>
 #else
 #else
-#include "xxh64/xxhash.h"
+#include "xxh64/xxhash.c"
 #endif
 #endif