diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2024-09-04 18:32:22 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-09-04 18:33:15 +0200 |
commit | bc0935d1e64ae639e0827631b88ea2a36eb0995d (patch) | |
tree | bb1be70ee79535bc54b85aac6f2a02829d84fad7 /target/linux/patches/4.19.320/vdso2.patch | |
parent | 8b0fa7b1b8f0935f15abe8b76ace6cf76e494784 (diff) |
linux: update kernels to latest LTS
Diffstat (limited to 'target/linux/patches/4.19.320/vdso2.patch')
-rw-r--r-- | target/linux/patches/4.19.320/vdso2.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/patches/4.19.320/vdso2.patch b/target/linux/patches/4.19.320/vdso2.patch new file mode 100644 index 000000000..3d9d47ede --- /dev/null +++ b/target/linux/patches/4.19.320/vdso2.patch @@ -0,0 +1,24 @@ +diff -Nur linux-4.19.151.orig/arch/x86/entry/vdso/vdso2c.c linux-4.19.151/arch/x86/entry/vdso/vdso2c.c +--- linux-4.19.151.orig/arch/x86/entry/vdso/vdso2c.c 2020-10-14 10:31:27.000000000 +0200 ++++ linux-4.19.151/arch/x86/entry/vdso/vdso2c.c 2020-10-17 06:09:50.000000000 +0200 +@@ -64,8 +64,20 @@ + #include <tools/le_byteshift.h> + + #include <linux/elf.h> ++#ifdef __linux__ + #include <linux/types.h> + #include <linux/kernel.h> ++#else ++ ++#define __must_be_array(a) 0 ++#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ++ ++typedef _Bool bool; ++enum { ++ false = 0, ++ true = 1 ++}; ++#endif + + const char *outfilename; + |