From 46f3db6bb81b3368783ea3748df46c2d7d2f7b2f Mon Sep 17 00:00:00 2001 From: Chris Dearman Date: Thu, 30 Jan 2014 20:01:19 -0800 Subject: [PATCH] [MIPS] SA_RESTORER support is not needed for MIPS Change-Id: I1c000c94973e811193c80c9770da4f3157594f90 Signed-off-by: Chris Dearman Signed-off-by: Duane Sand --- libc/bionic/sigaction.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/bionic/sigaction.cpp b/libc/bionic/sigaction.cpp index 6468b2d46..225a8233e 100644 --- a/libc/bionic/sigaction.cpp +++ b/libc/bionic/sigaction.cpp @@ -42,12 +42,14 @@ int sigaction(int signal, const struct sigaction* bionic_new_action, struct siga kernel_new_action.sa_flags = bionic_new_action->sa_flags; kernel_new_action.sa_handler = bionic_new_action->sa_handler; kernel_new_action.sa_mask = bionic_new_action->sa_mask; +#ifdef SA_RESTORER kernel_new_action.sa_restorer = bionic_new_action->sa_restorer; if (!(kernel_new_action.sa_flags & SA_RESTORER)) { kernel_new_action.sa_flags |= SA_RESTORER; kernel_new_action.sa_restorer = &__rt_sigreturn; } +#endif } __kernel_sigaction kernel_old_action; @@ -60,11 +62,13 @@ int sigaction(int signal, const struct sigaction* bionic_new_action, struct siga bionic_old_action->sa_flags = kernel_old_action.sa_flags; bionic_old_action->sa_handler = kernel_old_action.sa_handler; bionic_old_action->sa_mask = kernel_old_action.sa_mask; +#ifdef SA_RESTORER bionic_old_action->sa_restorer = kernel_old_action.sa_restorer; if (bionic_old_action->sa_restorer == &__rt_sigreturn) { bionic_old_action->sa_flags &= ~SA_RESTORER; } +#endif } return result;