mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
scst/include/backport.h: Include <linux/blk-mq.h> on RHEL 8
This patch is a build fix for RHEL 8. Signed-off-by: Ivan Orlov <orlov@soligran.ru> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8613 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
#include <linux/version.h>
|
||||
#include <linux/bio.h>
|
||||
#include <linux/blkdev.h> /* 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 <linux/blk-mq.h>
|
||||
#endif
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0)
|
||||
|
||||
Reference in New Issue
Block a user