summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-03-31 21:51:01 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-03-31 21:51:01 -0800
commit112347bb4c455feaa03bfe632b54d5ec5dee9fa7 (patch)
treea84fdfc835631881fe0dbdf3465c0aa3f38dd50e /include
parent8d507e4ebbedba393e2385dd73b9c1ee480a6acf (diff)
[PATCH] siginfo.si_band is long
From: Marcus Meissner <meissner@suse.de> After discussion on the glibc list the result was that=20 si_band is "long int" according to POSIX: http://www.opengroup.org/onlinepubs/007904975/basedefs/signal.h.html Ulrich Drepper refused a patch to fix glibc due to this reason: http://sources.redhat.com/ml/libc-alpha/2004-03/msg00254.html so here is the patch to fix it in the kernel. ppc64 and s390x were broken before and are fixed by this patch too.
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/siginfo.h2
-rw-r--r--include/asm-x86_64/siginfo.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/include/asm-generic/siginfo.h b/include/asm-generic/siginfo.h
index 356dd00c15e4..3550227a9673 100644
--- a/include/asm-generic/siginfo.h
+++ b/include/asm-generic/siginfo.h
@@ -27,7 +27,7 @@ typedef union sigval {
#endif
#ifndef __ARCH_SI_BAND_T
-#define __ARCH_SI_BAND_T int
+#define __ARCH_SI_BAND_T long int
#endif
#ifndef HAVE_ARCH_SIGINFO_T
diff --git a/include/asm-x86_64/siginfo.h b/include/asm-x86_64/siginfo.h
index 74fcd6437c88..7bc15985f124 100644
--- a/include/asm-x86_64/siginfo.h
+++ b/include/asm-x86_64/siginfo.h
@@ -3,8 +3,6 @@
#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
-#define __ARCH_SI_BAND_T long
-
#define SIGEV_PAD_SIZE ((SIGEV_MAX_SIZE/sizeof(int)) - 4)
#include <asm-generic/siginfo.h>