aboutsummaryrefslogtreecommitdiff
path: root/contrib/zstd/lib
diff options
context:
space:
mode:
authorRuslan Bukin <br@FreeBSD.org>2017-04-19 15:24:33 +0000
committerRuslan Bukin <br@FreeBSD.org>2017-04-19 15:24:33 +0000
commit2452e16e5baa1044e9dbe91e34617f8dd1326d0f (patch)
tree51b62e878741e083559f8e83b772c737246fd25d /contrib/zstd/lib
parent5d01277f596ee9b05b6b19b6a55fe84668ffc100 (diff)
downloadsrc-2452e16e5baa1044e9dbe91e34617f8dd1326d0f.tar.gz
src-2452e16e5baa1044e9dbe91e34617f8dd1326d0f.zip
Don't use __builtin_bswap for RISC-V due to undefined reference
in compiler. This unbreaks RISC-V world build. Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=317144
Diffstat (limited to 'contrib/zstd/lib')
-rw-r--r--contrib/zstd/lib/common/xxhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/zstd/lib/common/xxhash.c b/contrib/zstd/lib/common/xxhash.c
index eb44222c5fce..d59a22a06381 100644
--- a/contrib/zstd/lib/common/xxhash.c
+++ b/contrib/zstd/lib/common/xxhash.c
@@ -206,7 +206,7 @@ static U64 XXH_read64(const void* memPtr)
#if defined(_MSC_VER) /* Visual Studio */
# define XXH_swap32 _byteswap_ulong
# define XXH_swap64 _byteswap_uint64
-#elif GCC_VERSION >= 403
+#elif (GCC_VERSION >= 403 && !defined(__riscv__))
# define XXH_swap32 __builtin_bswap32
# define XXH_swap64 __builtin_bswap64
#else