linux: update kernels to latest LTS
[openadk.git] / target / linux / patches / 4.19.320 / vdso2.patch
blob3d9d47edee7a3ba74884805fb76780d795b7e5bb
1 diff -Nur linux-4.19.151.orig/arch/x86/entry/vdso/vdso2c.c linux-4.19.151/arch/x86/entry/vdso/vdso2c.c
2 --- linux-4.19.151.orig/arch/x86/entry/vdso/vdso2c.c 2020-10-14 10:31:27.000000000 +0200
3 +++ linux-4.19.151/arch/x86/entry/vdso/vdso2c.c 2020-10-17 06:09:50.000000000 +0200
4 @@ -64,8 +64,20 @@
5 #include <tools/le_byteshift.h>
7 #include <linux/elf.h>
8 +#ifdef __linux__
9 #include <linux/types.h>
10 #include <linux/kernel.h>
11 +#else
13 +#define __must_be_array(a) 0
14 +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
16 +typedef _Bool bool;
17 +enum {
18 + false = 0,
19 + true = 1
20 +};
21 +#endif
23 const char *outfilename;