changeset 1667:edffac13b5f2

Make gcc use the documented type for signal info instead of implementation detail leakage that musl doesn't do.
author Rob Landley <rob@landley.net>
date Wed, 02 Jul 2014 21:17:39 -0500
parents ba28c96cba42
children 04b6f9a8c6af
files sources/patches/gcc-core-portability.patch
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/gcc-core-portability.patch	Wed Jul 02 21:17:39 2014 -0500
@@ -0,0 +1,17 @@
+Build against musl (or current glibc) using the standard name instead of the random implementation detail leakage.
+
+diff -ruN gcc-core/gcc/config/i386/linux-unwind.h gcc-core.bak/gcc/config/i386/linux-unwind.h
+--- gcc-core/gcc/config/i386/linux-unwind.h	2006-02-27 11:26:26.000000000 -0600
++++ gcc-core.bak/gcc/config/i386/linux-unwind.h	2014-07-02 18:27:17.931529601 -0500
+@@ -137,9 +137,9 @@
+     {
+       struct rt_sigframe {
+ 	int sig;
+-	struct siginfo *pinfo;
++	siginfo_t *pinfo;
+ 	void *puc;
+-	struct siginfo info;
++	siginfo_t info;
+ 	struct ucontext uc;
+       } *rt_ = context->cfa;
+       /* The void * cast is necessary to avoid an aliasing warning.