mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 05:01:27 +00:00
scst/include/backport.h: Fix the CentOS / RHEL 7.[012345] builds
See also PR https://github.com/SCST-project/scst/pull/132.
This commit is contained in:
@@ -576,8 +576,9 @@ static inline long get_user_pages_backport(unsigned long start,
|
||||
|
||||
/* <linux/kobject_ns.h> */
|
||||
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user