diff mbox

hppa: sigaction.h: change sa_flags to an int

Message ID 1437533471-21611-1-git-send-email-vapier@gentoo.org
State Committed
Delegated to: Mike Frysinger
Headers show

Commit Message

Mike Frysinger July 22, 2015, 2:51 a.m. UTC
This fixes the conform test for the sigaction.h header and makes it match
all the other arches.

2015-07-22  Mike Frysinger  <vapier@gentoo.org>

	* sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
	(struct sigaction): Change sa_flags from a long to an int, and add
	__glibc_reserved0 before it for padding when __WORDSIZE is 64.
---
 sysdeps/unix/sysv/linux/hppa/bits/sigaction.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Mike Frysinger July 30, 2015, 3:15 a.m. UTC | #1
On 21 Jul 2015 22:51, Mike Frysinger wrote:
> This fixes the conform test for the sigaction.h header and makes it match
> all the other arches.

i've pushed this now
-mike
diff mbox

Patch

diff --git a/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h b/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
index ee41396..ebe375f 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
@@ -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
   {
@@ -40,7 +42,10 @@  struct sigaction
 #endif
 
     /* Special flags.  */
-    unsigned long int sa_flags;
+#if __WORDSIZE == 64
+    int __glibc_reserved0;
+#endif
+    int sa_flags;
 
     /* Additional set of signals to be blocked.  */
     __sigset_t sa_mask;