1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

sparc: fix sigaction for 32bit builds [BZ #18694]

Commit a059d359d8 changed the sigaction
struct to pass conform tests, but it ended up also changing the ABI for
32 bit builds.  For 64 bit builds, changing the long to two ints works,
but for 32 bit builds, it inserts 4 extra bytes.  This leads to many
packages randomly failing like bash that spews things like:
	configure: line 471: wait_for: No record of process 0

Bracket the new member by a wordsize check to fix the ABI for 32bit.
This commit is contained in:
Mike Frysinger
2015-07-20 07:29:15 -04:00
parent d72c276305
commit 7fde904c73
3 changed files with 16 additions and 1 deletions

View File

@ -20,6 +20,8 @@
# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
#endif
#include <bits/wordsize.h>
/* Structure describing the action to be taken when a signal arrives. */
struct sigaction
{
@ -43,7 +45,9 @@ struct sigaction
__sigset_t sa_mask;
/* Special flags. */
#if __WORDSIZE == 64
int __glibc_reserved0;
#endif
int sa_flags;
/* Not used by Linux/Sparc yet. */