diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-10 19:28:45 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-10 19:28:45 +0000 |
commit | ded4c0675d1dd3b6268ac94ff2c99ebb280815f9 (patch) | |
tree | bfa8b5fbe38c9d55ce814c4fbdbc02c830a0a8b9 /toolchain/uClibc/patches-0.9.33.2/615-mips_fix_sigev_pad_size.patch | |
parent | a44b4e3ffb2a35cc83871c46d8b45327e5abc91c (diff) | |
download | upstream-ded4c0675d1dd3b6268ac94ff2c99ebb280815f9.tar.gz upstream-ded4c0675d1dd3b6268ac94ff2c99ebb280815f9.tar.bz2 upstream-ded4c0675d1dd3b6268ac94ff2c99ebb280815f9.zip |
uClibc: add a whole bunch of mips64 related fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41570
Diffstat (limited to 'toolchain/uClibc/patches-0.9.33.2/615-mips_fix_sigev_pad_size.patch')
-rw-r--r-- | toolchain/uClibc/patches-0.9.33.2/615-mips_fix_sigev_pad_size.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.33.2/615-mips_fix_sigev_pad_size.patch b/toolchain/uClibc/patches-0.9.33.2/615-mips_fix_sigev_pad_size.patch new file mode 100644 index 0000000000..f75092f343 --- /dev/null +++ b/toolchain/uClibc/patches-0.9.33.2/615-mips_fix_sigev_pad_size.patch @@ -0,0 +1,58 @@ +commit b97b4b698b023f75b54f987859c856ab4861ea00 +Author: Vicente Olivert Riera <Vincent.Riera@imgtec.com> +Date: Thu Jan 2 15:02:12 2014 +0000 + + 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 <Vincent.Riera@imgtec.com> + Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> + +--- a/libc/sysdeps/linux/alpha/bits/siginfo.h ++++ b/libc/sysdeps/linux/alpha/bits/siginfo.h +@@ -258,7 +258,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 + { +--- a/libc/sysdeps/linux/ia64/bits/siginfo.h ++++ b/libc/sysdeps/linux/ia64/bits/siginfo.h +@@ -298,7 +298,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 + { +--- a/libc/sysdeps/linux/mips/bits/siginfo.h ++++ b/libc/sysdeps/linux/mips/bits/siginfo.h +@@ -265,8 +265,11 @@ enum + + /* Structure to transport application-defined values with signals. */ + # define __SIGEV_MAX_SIZE 64 +-# define __SIGEV_HEAD_SIZE (sizeof(long) + 2*sizeof(int)) +-# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE - __SIGEV_HEAD_SIZE) / sizeof (int)) ++# 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 + + /* Forward declaration of the `pthread_attr_t' type. */ + struct __pthread_attr_s; |