diff options
author | Hongzhi.Song <hongzhi.song@windriver.com> | 2019-07-17 02:50:39 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-18 12:16:19 +0100 |
commit | 765b53118d397de50f6b619a7f8100998b2933e7 (patch) | |
tree | 40d4685ca76f425847a9458e1436de2a0927a8af /meta/recipes-graphics/xorg-lib | |
parent | c0017bee41ca8bafe9e66fc918a7aef4033484ff (diff) | |
download | poky-765b53118d397de50f6b619a7f8100998b2933e7.tar.gz |
ltp: getrlimit03: adjust-a-bit-of-code-to-compatiable-with mips32
Error info:
getrlimit03.c:104: FAIL: __NR_prlimit64(0) had rlim_cur =
ffffffffffffffff but __NR_getrlimit(0) had rlim_cur = 7fffffff
According to kernel code: [arch/mips/include/uapi/asm/resource.h]
RLIM_INFINITY is set to 0x7fffffffUL instead of ULONG_MAX on mips32.
/*
* SuS says limits have to be unsigned.
* Which makes a ton more sense anyway,
* but we keep the old value on MIPS32,
* for compatibility:
*/
#ifndef __mips64
# define RLIM_INFINITY 0x7fffffffUL
#endif
Adding conditional statement about mips to fix this.
(From OE-Core rev: 6bb6de711631fb2d339c447c6f88c8e06c17b967)
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib')
0 files changed, 0 insertions, 0 deletions