siginfo.patch 1.0 KB

123456789101112131415161718192021222324252627
  1. diff -Nur gcc-4.6.3.orig/gcc/config/i386/linux-unwind.h gcc-4.6.3/gcc/config/i386/linux-unwind.h
  2. --- gcc-4.6.3.orig/gcc/config/i386/linux-unwind.h 2011-01-03 21:52:22.000000000 +0100
  3. +++ gcc-4.6.3/gcc/config/i386/linux-unwind.h 2012-08-30 15:37:37.000000000 +0200
  4. @@ -133,9 +133,9 @@
  5. {
  6. struct rt_sigframe {
  7. int sig;
  8. - struct siginfo *pinfo;
  9. + siginfo_t *pinfo;
  10. void *puc;
  11. - struct siginfo info;
  12. + siginfo_t info;
  13. struct ucontext uc;
  14. } *rt_ = context->cfa;
  15. /* The void * cast is necessary to avoid an aliasing warning.
  16. diff -Nur gcc-4.6.3.orig/gcc/config/mips/linux-unwind.h gcc-4.6.3/gcc/config/mips/linux-unwind.h
  17. --- gcc-4.6.3.orig/gcc/config/mips/linux-unwind.h 2009-04-09 17:00:19.000000000 +0200
  18. +++ gcc-4.6.3/gcc/config/mips/linux-unwind.h 2012-08-30 15:38:45.000000000 +0200
  19. @@ -75,7 +75,7 @@
  20. struct rt_sigframe {
  21. u_int32_t ass[4]; /* Argument save space for o32. */
  22. u_int32_t trampoline[2];
  23. - struct siginfo info;
  24. + siginfo_t info;
  25. _sig_ucontext_t uc;
  26. } *rt_ = context->cfa;
  27. sc = &rt_->uc.uc_mcontext;