patch-time_c 560 B

1234567891011121314
  1. --- strace-4.8.orig/time.c 2012-05-01 23:17:51.000000000 +0200
  2. +++ strace-4.8/time.c 2014-02-25 17:25:14.000000000 +0100
  3. @@ -774,7 +774,11 @@ printsigevent(struct tcb *tcp, long arg)
  4. /* _pad[0] is the _tid field which might not be
  5. present in the userlevel definition of the
  6. struct. */
  7. +#if defined(__GLIBC__)
  8. tprintf("{%d}", sev._sigev_un._pad[0]);
  9. +#else
  10. + tprintf("{%d}", (int) sev.__pad[0]);
  11. +#endif
  12. else if (sev.sigev_notify == SIGEV_THREAD)
  13. tprintf("{%p, %p}", sev.sigev_notify_function,
  14. sev.sigev_notify_attributes);