From 648500799d9ccb9163bf906f1808d939e27ff5fc Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Sat, 18 Feb 2023 15:03:33 +0300 Subject: [PATCH] scst/include/backport.h: Fix the CentOS / RHEL 7.[012345] builds See also PR https://github.com/SCST-project/scst/pull/132. --- scst/include/backport.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index dd98d9b72..1e7e1cc63 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -576,8 +576,9 @@ static inline long get_user_pages_backport(unsigned long start, /* */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0) && \ - (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7) +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0) && \ + (!defined(RHEL_RELEASE_CODE) || \ + RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(7, 6)) /* * See also commit 5f256becd868 ("[NET]: Basic network namespace * infrastructure."; v2.6.24). a685e08987d1 ("Delay struct net freeing while