From 01e593e8e598efc447c5809ea477e34a88a86648 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 18 May 2022 15:27:27 +0200 Subject: vppinfra: fix non-vector build on x86_64 Type: fix Fixes: 56f54af Change-Id: Id03185953eb16da3a3276d2f21d64499784bbf17 Signed-off-by: Damjan Marion --- src/vppinfra/string.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vppinfra/string.h b/src/vppinfra/string.h index 0d8b1e6cb25..38d3baba9da 100644 --- a/src/vppinfra/string.h +++ b/src/vppinfra/string.h @@ -47,7 +47,9 @@ #include /* for CLIB_LINUX_KERNEL */ #include #include +#ifdef __SSE4_2__ #include +#endif #ifdef CLIB_LINUX_KERNEL #include @@ -77,7 +79,7 @@ clib_memcpy_fast (void *restrict dst, const void *restrict src, size_t n) "behaviour"); #if defined(__COVERITY__) return memcpy (dst, src, n); -#elif defined(__x86_64__) +#elif defined(__SSE4_2__) clib_memcpy_x86_64 (dst, src, n); return dst; #else -- cgit 1.2.3-korg