From b97b4b698b023f75b54f987859c856ab4861ea00 Mon Sep 17 00:00:00 2001 From: Vicente Olivert Riera Date: Thu, 2 Jan 2014 15:02:12 +0000 Subject: siginfo.h: __SIGEV_PAD_SIZE takes __WORDSIZE into account Make __SIGEV_PAD_SIZE to take __WORDSIZE into account for alpha, mips and ia64 arches. Signed-off-by: Vicente Olivert Riera Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/alpha/bits/siginfo.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/alpha') diff --git a/libc/sysdeps/linux/alpha/bits/siginfo.h b/libc/sysdeps/linux/alpha/bits/siginfo.h index 9993f66b9..0a37ad08b 100644 --- a/libc/sysdeps/linux/alpha/bits/siginfo.h +++ b/libc/sysdeps/linux/alpha/bits/siginfo.h @@ -257,7 +257,11 @@ enum /* Structure to transport application-defined values with signals. */ # define __SIGEV_MAX_SIZE 64 -# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 4) +# if __WORDSIZE == 64 +# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 4) +# else +# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3) +# endif typedef struct sigevent { -- cgit v1.2.3