From: Thomas Monjalon Date: Wed, 3 Feb 2016 18:56:39 +0000 (+0100) Subject: examples/ip_pipeline: fix build for x86_64 without SSE4.2 X-Git-Tag: spdx-start~7632 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=28377375c6c0;p=dpdk.git examples/ip_pipeline: fix build for x86_64 without SSE4.2 The compiler cannot use _mm_crc32_u64: examples/ip_pipeline/pipeline/hash_func.h:165:9: error: implicit declaration of function '_mm_crc32_u64' is invalid in C99 Fixes: 947024a26df7 ("examples/ip_pipeline: rework passthrough pipeline") Signed-off-by: Thomas Monjalon --- diff --git a/examples/ip_pipeline/pipeline/hash_func.h b/examples/ip_pipeline/pipeline/hash_func.h index 78463006bd..1953ad4706 100644 --- a/examples/ip_pipeline/pipeline/hash_func.h +++ b/examples/ip_pipeline/pipeline/hash_func.h @@ -152,7 +152,7 @@ hash_xor_key64(void *key, __rte_unused uint32_t key_size, uint64_t seed) return (xor0 >> 32) ^ xor0; } -#if defined(__x86_64__) +#if defined(__x86_64__) && defined(RTE_CPUFLAG_SSE4_2) #include