Browse Source

tests/sigaction: workaround odd libcs on alpha and mips

Apparently, some libcs define SA_RESTORER on alpha and mips
despite of the absence of sa_restorer field.  Workaround this
to match the logic implemented in decode_old_sigaction().

* tests/sigaction.c (main) [ALPHA || MIPS]: Do not check decoding
of sa_restorer field.
Dmitry V. Levin 1 month ago
parent
commit
5b87630451
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tests/sigaction.c

+ 1
- 1
tests/sigaction.c View File

@@ -157,7 +157,7 @@ main(void)
157 157
 	sigdelset(mask.libc, SIGHUP);
158 158
 
159 159
 	memcpy(new_act->mask, mask.old, sizeof(mask.old));
160
-# ifdef SA_RESTORER
160
+# if defined SA_RESTORER && !(defined ALPHA || defined MIPS)
161 161
 	new_act->flags = SA_RESTORER;
162 162
 	new_act->restorer = (unsigned long) 0xdeadfacecafef00dULL;
163 163
 #  define SA_RESTORER_FMT ", sa_flags=SA_RESTORER, sa_restorer=%#lx"

Loading…
Cancel
Save