vdso2.patch 663 B

123456789101112131415161718192021222324
  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>
  6. #include <linux/elf.h>
  7. +#ifdef __linux__
  8. #include <linux/types.h>
  9. #include <linux/kernel.h>
  10. +#else
  11. +
  12. +#define __must_be_array(a) 0
  13. +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
  14. +
  15. +typedef _Bool bool;
  16. +enum {
  17. + false = 0,
  18. + true = 1
  19. +};
  20. +#endif
  21. const char *outfilename;