diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-01-13 18:36:37 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-01-13 18:36:37 +0100 |
commit | d6d5caa4f16f0fb9dcadca58e6adf5160f13acbd (patch) | |
tree | fc8943c1c398ec2b3cb5834da74a3ef44b95fe62 | |
parent | 47e27821554fe0299c008572976ea378c0195f92 (diff) |
compat: SYM_FUNC_* was backported to c8s
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/compat/compat-asm.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/compat/compat-asm.h b/src/compat/compat-asm.h index 4e427e5..7067afd 100644 --- a/src/compat/compat-asm.h +++ b/src/compat/compat-asm.h @@ -10,6 +10,17 @@ #include <linux/kconfig.h> #include <linux/version.h> +#ifdef RHEL_MAJOR +#if RHEL_MAJOR == 7 +#define ISRHEL7 +#elif RHEL_MAJOR == 8 +#define ISRHEL8 +#if RHEL_MINOR == 4 +#define ISCENTOS8S +#endif +#endif +#endif + /* PaX compatibility */ #if defined(RAP_PLUGIN) #undef ENTRY @@ -40,7 +51,7 @@ #undef pull #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76) && !defined(ISCENTOS8S) #define SYM_FUNC_START ENTRY #define SYM_FUNC_END ENDPROC #endif |