summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/ia64/bits/siginfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/ia64/bits/siginfo.h')
-rw-r--r--libc/sysdeps/linux/ia64/bits/siginfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/ia64/bits/siginfo.h b/libc/sysdeps/linux/ia64/bits/siginfo.h
index 82cc73fdb..3ac988baf 100644
--- a/libc/sysdeps/linux/ia64/bits/siginfo.h
+++ b/libc/sysdeps/linux/ia64/bits/siginfo.h
@@ -297,7 +297,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
{