summaryrefslogtreecommitdiff
path: root/target/linux/patches/4.14.142/vdso2.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-09-12 12:13:47 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2019-09-12 13:23:49 +0200
commitc8fb7cd7f6b46b42d588eed80abd1fe6422b1896 (patch)
tree4be894b84e7d9513dc4ce84cc11ac9c48f23f7d1 /target/linux/patches/4.14.142/vdso2.patch
parent364bdfb6058e001024617c6e335e5f3cd41538bf (diff)
move kernel patches
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'target/linux/patches/4.14.142/vdso2.patch')
-rw-r--r--target/linux/patches/4.14.142/vdso2.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/patches/4.14.142/vdso2.patch b/target/linux/patches/4.14.142/vdso2.patch
new file mode 100644
index 000000000..b6c32f31b
--- /dev/null
+++ b/target/linux/patches/4.14.142/vdso2.patch
@@ -0,0 +1,27 @@
+diff -Nur linux-4.14.44.orig/arch/x86/entry/vdso/vdso2c.c linux-4.14.44/arch/x86/entry/vdso/vdso2c.c
+--- linux-4.14.44.orig/arch/x86/entry/vdso/vdso2c.c 2018-05-25 16:18:02.000000000 +0200
++++ linux-4.14.44/arch/x86/entry/vdso/vdso2c.c 2018-05-31 02:09:00.000000000 +0200
+@@ -64,7 +64,15 @@
+ #include <tools/le_byteshift.h>
+
+ #include <linux/elf.h>
++#ifdef __linux__
+ #include <linux/types.h>
++#else
++typedef _Bool bool;
++enum {
++ false = 0,
++ true = 1
++};
++#endif
+
+ const char *outfilename;
+
+@@ -86,6 +94,7 @@
+ sym_hvclock_page,
+ };
+
++
+ struct vdso_sym {
+ const char *name;
+ bool export;