diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-29 04:26:42 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-29 04:26:42 +0000 |
commit | 7dae4a2150985987bbc435c671ff2386f8d0c1a8 (patch) | |
tree | 61b96c9640e8d511994c4e20be51e7922c81ee46 /toolchain | |
parent | 9a0c50fc90851e40fb2ade960d79d49d0e05c746 (diff) | |
download | upstream-7dae4a2150985987bbc435c671ff2386f8d0c1a8.tar.gz upstream-7dae4a2150985987bbc435c671ff2386f8d0c1a8.tar.bz2 upstream-7dae4a2150985987bbc435c671ff2386f8d0c1a8.zip |
uClibc: add another missing backport patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45102 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/uClibc/patches-0.9.33.2/020-endian.h-add-some-handy-macros-to-be-used-in-syscall.patch | 28 | ||||
-rw-r--r-- | toolchain/uClibc/patches-0.9.33.2/021-add-posix_madvise.c.patch (renamed from toolchain/uClibc/patches-0.9.33.2/020-add-posix_madvise.c.patch) | 0 | ||||
-rw-r--r-- | toolchain/uClibc/patches-0.9.33.2/022-libc-add-posix_fallocate.patch (renamed from toolchain/uClibc/patches-0.9.33.2/021-libc-add-posix_fallocate.patch) | 0 | ||||
-rw-r--r-- | toolchain/uClibc/patches-0.9.33.2/023-libc-add-fallocate-and-fallocate64.patch (renamed from toolchain/uClibc/patches-0.9.33.2/022-libc-add-fallocate-and-fallocate64.patch) | 0 |
4 files changed, 28 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.33.2/020-endian.h-add-some-handy-macros-to-be-used-in-syscall.patch b/toolchain/uClibc/patches-0.9.33.2/020-endian.h-add-some-handy-macros-to-be-used-in-syscall.patch new file mode 100644 index 0000000000..720104195a --- /dev/null +++ b/toolchain/uClibc/patches-0.9.33.2/020-endian.h-add-some-handy-macros-to-be-used-in-syscall.patch @@ -0,0 +1,28 @@ +From: "Peter S. Mazinger" <ps.m@gmx.net> +Date: Thu, 21 Apr 2011 21:20:55 +0200 +Subject: [PATCH] endian.h: add some handy macros to be used in syscalls + +Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> +Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> +--- + +--- a/include/endian.h ++++ b/include/endian.h +@@ -55,6 +55,17 @@ + # define __LONG_LONG_PAIR(HI, LO) HI, LO + #endif + ++#ifdef _LIBC ++# ifndef __ASSEMBLER__ ++# include <stdint.h> ++# define OFF_HI(offset) (offset >> 31) ++# define OFF_LO(offset) (offset) ++# define OFF64_HI(offset) (uint32_t)(offset >> 32) ++# define OFF64_LO(offset) (uint32_t)(offset & 0xffffffff) ++# define OFF_HI_LO(offset) __LONG_LONG_PAIR(OFF_HI(offset), OFF_LO(offset)) ++# define OFF64_HI_LO(offset) __LONG_LONG_PAIR(OFF64_HI(offset), OFF64_LO(offset)) ++# endif ++#endif + + #ifdef __USE_BSD + /* Conversion interfaces. */ diff --git a/toolchain/uClibc/patches-0.9.33.2/020-add-posix_madvise.c.patch b/toolchain/uClibc/patches-0.9.33.2/021-add-posix_madvise.c.patch index 2b18c258d9..2b18c258d9 100644 --- a/toolchain/uClibc/patches-0.9.33.2/020-add-posix_madvise.c.patch +++ b/toolchain/uClibc/patches-0.9.33.2/021-add-posix_madvise.c.patch diff --git a/toolchain/uClibc/patches-0.9.33.2/021-libc-add-posix_fallocate.patch b/toolchain/uClibc/patches-0.9.33.2/022-libc-add-posix_fallocate.patch index 504405a716..504405a716 100644 --- a/toolchain/uClibc/patches-0.9.33.2/021-libc-add-posix_fallocate.patch +++ b/toolchain/uClibc/patches-0.9.33.2/022-libc-add-posix_fallocate.patch diff --git a/toolchain/uClibc/patches-0.9.33.2/022-libc-add-fallocate-and-fallocate64.patch b/toolchain/uClibc/patches-0.9.33.2/023-libc-add-fallocate-and-fallocate64.patch index 282b64f52e..282b64f52e 100644 --- a/toolchain/uClibc/patches-0.9.33.2/022-libc-add-fallocate-and-fallocate64.patch +++ b/toolchain/uClibc/patches-0.9.33.2/023-libc-add-fallocate-and-fallocate64.patch |