summaryrefslogtreecommitdiffhomepage
path: root/src/compat/compat-asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat/compat-asm.h')
-rw-r--r--src/compat/compat-asm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat/compat-asm.h b/src/compat/compat-asm.h
index fde21da..5bfdb94 100644
--- a/src/compat/compat-asm.h
+++ b/src/compat/compat-asm.h
@@ -22,7 +22,7 @@
#endif
/* PaX compatibility */
-#if defined(RAP_PLUGIN)
+#if defined(RAP_PLUGIN) && defined(RAP_ENTRY)
#undef ENTRY
#define ENTRY RAP_ENTRY
#endif
@@ -51,7 +51,7 @@
#undef pull
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76) && !defined(ISCENTOS8S)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76) && !defined(ISCENTOS8S) && !defined(SYM_FUNC_START)
#define SYM_FUNC_START ENTRY
#define SYM_FUNC_END ENDPROC
#endif