Commit 112347bb authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent 8d507e4e
......@@ -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
......
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment