aboutsummaryrefslogtreecommitdiffstatshomepage
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.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/compat/compat-asm.h b/src/compat/compat-asm.h
new file mode 100644
index 0000000..548841d
--- /dev/null
+++ b/src/compat/compat-asm.h
@@ -0,0 +1,15 @@
+/* Copyright (C) 2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */
+
+#ifndef _WG_COMPATASM_H
+#define _WG_COMPATASM_H
+
+#include <linux/linkage.h>
+#include <linux/kconfig.h>
+
+/* PaX compatibility */
+#if defined(RAP_PLUGIN)
+#undef ENTRY
+#define ENTRY RAP_ENTRY
+#endif
+
+#endif /* _WG_COMPATASM_H */