From: Lee Roberts Date: Wed, 31 May 2017 15:40:15 +0000 (-0600) Subject: kni: fix build on RHEL 7.4 X-Git-Tag: spdx-start~3192 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1e1cabc7a5d8799e55324de01f8eec150d574aef;p=dpdk.git kni: fix build on RHEL 7.4 Linux: 9b36627acecd ("net: remove dev->trans_start") Signed-off-by: Lee Roberts Acked-by: Ferruh Yigit --- diff --git a/lib/librte_eal/linuxapp/kni/compat.h b/lib/librte_eal/linuxapp/kni/compat.h index d96275af96..6a1587b4ef 100644 --- a/lib/librte_eal/linuxapp/kni/compat.h +++ b/lib/librte_eal/linuxapp/kni/compat.h @@ -53,7 +53,9 @@ #define HAVE_SK_ALLOC_KERN_PARAM #endif -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) || \ + (defined(RHEL_RELEASE_CODE) && \ + RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 4)) #define HAVE_TRANS_START_HELPER #endif