kernel: Fix compilation for non-gki kernels (#547)
* kernel: Fix compilation for non-gki kernels * kernel: Check if selinux_state exists rather than depends on version code
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <linux/version.h>
|
||||
#include "linux/sched.h"
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)) || defined(KSU_COMPAT_HAS_SELINUX_STATE)
|
||||
#ifdef KSU_COMPAT_HAS_SELINUX_STATE
|
||||
#define KSU_COMPAT_USE_SELINUX_STATE
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user