From 765fcfd0261c54af2b550a77d7dbe49d5395c408 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 27 Feb 2014 09:39:53 +0100 Subject: rework musl patches, mostly from sabotage linux --- package/strace/patches/patch-time_c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 package/strace/patches/patch-time_c (limited to 'package/strace/patches/patch-time_c') diff --git a/package/strace/patches/patch-time_c b/package/strace/patches/patch-time_c new file mode 100644 index 000000000..53a6cf76b --- /dev/null +++ b/package/strace/patches/patch-time_c @@ -0,0 +1,14 @@ +--- strace-4.8.orig/time.c 2012-05-01 23:17:51.000000000 +0200 ++++ strace-4.8/time.c 2014-02-25 17:25:14.000000000 +0100 +@@ -774,7 +774,11 @@ printsigevent(struct tcb *tcp, long arg) + /* _pad[0] is the _tid field which might not be + present in the userlevel definition of the + struct. */ ++#if defined(__GLIBC__) + tprintf("{%d}", sev._sigev_un._pad[0]); ++#else ++ tprintf("{%d}", (int) sev.__pad[0]); ++#endif + else if (sev.sigev_notify == SIGEV_THREAD) + tprintf("{%p, %p}", sev.sigev_notify_function, + sev.sigev_notify_attributes); -- cgit v1.2.3