From 904bd8428b2759f0add22a45ff7555b213d94c86 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Mon, 11 Jul 2022 21:42:56 +0300 Subject: [PATCH] scst_vdisk: Unbreak the RHEL 9 build --- scst/src/dev_handlers/scst_vdisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 856141d87..910799cac 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -41,7 +41,8 @@ #include #include #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0) || \ + (defined(RHEL_MAJOR) && RHEL_MAJOR -0 >= 9) #include #endif #include