1
0

vdso2.patch 609 B

123456789101112131415161718192021222324252627
  1. diff -Nur linux-4.7.2.orig/arch/x86/entry/vdso/vdso2c.c linux-4.7.2/arch/x86/entry/vdso/vdso2c.c
  2. --- linux-4.7.2.orig/arch/x86/entry/vdso/vdso2c.c 2016-08-20 18:11:18.000000000 +0200
  3. +++ linux-4.7.2/arch/x86/entry/vdso/vdso2c.c 2016-09-04 11:11:01.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. @@ -84,6 +92,7 @@
  18. sym_pvclock_page,
  19. };
  20. +
  21. struct vdso_sym {
  22. const char *name;
  23. bool export;