You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-cluster/ceph/files/ceph-15.2.9-dont-compile-is...

23 lines
901 B

diff --git a/src/compressor/zlib/ZlibCompressor.cc b/src/compressor/zlib/ZlibCompressor.cc
index e3064d2a21..c86b19da6c 100644
--- a/src/compressor/zlib/ZlibCompressor.cc
+++ b/src/compressor/zlib/ZlibCompressor.cc
@@ -107,7 +107,7 @@ int ZlibCompressor::zlib_compress(const bufferlist &in, bufferlist &out)
return 0;
}
-#if __x86_64__ && defined(HAVE_BETTER_YASM_ELF64)
+#if __x86_64__ && defined(HAVE_BETTER_YASM_ELF64) && defined(HAVE_INTEL_SSE4_1)
int ZlibCompressor::isal_compress(const bufferlist &in, bufferlist &out)
{
int ret;
@@ -167,7 +167,7 @@ int ZlibCompressor::compress(const bufferlist &in, bufferlist &out)
if (qat_enabled)
return qat_accel.compress(in, out);
#endif
-#if __x86_64__ && defined(HAVE_BETTER_YASM_ELF64)
+#if __x86_64__ && defined(HAVE_BETTER_YASM_ELF64) && defined(HAVE_INTEL_SSE4_1)
if (isal_enabled)
return isal_compress(in, out);
else