From d6d5caa4f16f0fb9dcadca58e6adf5160f13acbd Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 13 Jan 2021 18:36:37 +0100 Subject: compat: SYM_FUNC_* was backported to c8s Signed-off-by: Jason A. Donenfeld --- src/compat/compat-asm.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 #include +#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 -- cgit v1.2.3