vdso2.patch 617 B

123456789101112131415161718192021222324252627
  1. diff -Nur linux-4.14.44.orig/arch/x86/entry/vdso/vdso2c.c linux-4.14.44/arch/x86/entry/vdso/vdso2c.c
  2. --- linux-4.14.44.orig/arch/x86/entry/vdso/vdso2c.c 2018-05-25 16:18:02.000000000 +0200
  3. +++ linux-4.14.44/arch/x86/entry/vdso/vdso2c.c 2018-05-31 02:09:00.000000000 +0200
  4. @@ -64,7 +64,15 @@
  5. #include <tools/le_byteshift.h>
  6. #include <linux/elf.h>
  7. +#ifdef __linux__
  8. #include <linux/types.h>
  9. +#else
  10. +typedef _Bool bool;
  11. +enum {
  12. + false = 0,
  13. + true = 1
  14. +};
  15. +#endif
  16. const char *outfilename;
  17. @@ -86,6 +94,7 @@
  18. sym_hvclock_page,
  19. };
  20. +
  21. struct vdso_sym {
  22. const char *name;
  23. bool export;