Skip to content

Commit d6d5caa

Browse files
committed
compat: SYM_FUNC_* was backported to c8s
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent 47e2782 commit d6d5caa

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/compat/compat-asm.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
#include <linux/kconfig.h>
1111
#include <linux/version.h>
1212

13+
#ifdef RHEL_MAJOR
14+
#if RHEL_MAJOR == 7
15+
#define ISRHEL7
16+
#elif RHEL_MAJOR == 8
17+
#define ISRHEL8
18+
#if RHEL_MINOR == 4
19+
#define ISCENTOS8S
20+
#endif
21+
#endif
22+
#endif
23+
1324
/* PaX compatibility */
1425
#if defined(RAP_PLUGIN)
1526
#undef ENTRY
@@ -40,7 +51,7 @@
4051
#undef pull
4152
#endif
4253

43-
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76)
54+
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76) && !defined(ISCENTOS8S)
4455
#define SYM_FUNC_START ENTRY
4556
#define SYM_FUNC_END ENDPROC
4657
#endif

0 commit comments

Comments
 (0)