From 36e4ee26bba687b3d39ccdda2a9a47a1f2cdcc15 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 9 Oct 2019 02:39:44 +0000 Subject: [PATCH] scst/include/backport.h: Include on RHEL 8 This patch is a build fix for RHEL 8. Signed-off-by: Ivan Orlov git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8613 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index dff512a25..9696d83e4 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -23,7 +23,8 @@ #include #include #include /* struct request_queue */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 21, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 21, 0) || \ + (defined(RHEL_MAJOR) && RHEL_MAJOR -0 >= 8) #include #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0)