Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170325054716.11430-1-nenolod@dereferenced.org>
Date: Sat, 25 Mar 2017 05:47:16 +0000
From: William Pitcock <nenolod@...eferenced.org>
To: musl@...ts.openwall.com
Cc: William Pitcock <nenolod@...eferenced.org>
Subject: [PATCH] s390x: provide a working sigcontext struct definition

For some reason, struct sigcontext was not declared on s390x (even though it is declared on every
other architecture).  Provide a workable equivalent to the structure provided by the kernel.

Signed-off-by: William Pitcock <nenolod@...eferenced.org>
---
 arch/s390x/bits/signal.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/s390x/bits/signal.h b/arch/s390x/bits/signal.h
index c8665832..832351ce 100644
--- a/arch/s390x/bits/signal.h
+++ b/arch/s390x/bits/signal.h
@@ -43,6 +43,11 @@ typedef struct {
 
 #endif
 
+struct sigcontext {
+	unsigned long oldmask[1];
+	mcontext_t *sregs;
+};
+
 struct sigaltstack {
 	void *ss_sp;
 	int ss_flags;
-- 
2.12.1

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.