blob: becee79d1a20cbceda14d575d10d334089051160 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 879ae71c472ce522f1b3514d2abf6ad49b4acc07 Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 18 Sep 2017 22:51:32 -0700
4Subject: [PATCH] tests/sigaction: Check for mips and alpha before using
5 sa_restorer
6
7local structure does not define restorer member for mips and alpha
8in definition, we need to match that assumption here where they are
9being set
10
11Fixes
12| ../../strace-4.18/tests/sigaction.c:177:36: error: 'struct_set_sa {aka struct set_sa}' has no member named 'restorer'
13| # define SA_RESTORER_ARGS , new_act->restorer
14
Brad Bishopd7bf8c12018-02-25 22:55:05 -050015Upstream-Status: Pending
Brad Bishop19323692019-04-05 15:28:33 -040016Signed-off-by: Khem Raj <raj.khem@gmail.com>
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017
Brad Bishop19323692019-04-05 15:28:33 -040018---
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019 tests/sigaction.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/tests/sigaction.c b/tests/sigaction.c
Brad Bishop19323692019-04-05 15:28:33 -040023index 95be197..54819f9 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050024--- a/tests/sigaction.c
25+++ b/tests/sigaction.c
Brad Bishop19323692019-04-05 15:28:33 -040026@@ -156,7 +156,7 @@ main(void)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050027 sigdelset(mask.libc, SIGHUP);
28
29 memcpy(new_act->mask, mask.old, sizeof(mask.old));
30-#ifdef SA_RESTORER
31+#if defined(SA_RESTORER) && !defined(MIPS) && !defined(ALPHA)
32 new_act->flags = SA_RESTORER;
33 new_act->restorer = (unsigned long) 0xdeadfacecafef00dULL;
34 # define SA_RESTORER_FMT ", sa_flags=SA_RESTORER, sa_restorer=%#lx"