From f347524fade67b41fb8e46283a6f0ae4aa19e6b0 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Mon, 22 Jun 2015 04:10:54 +0300 Subject: xtensa: add ret_ERRVAL definition ret_ERRVAL is used by mq_timedsend and mq_timedreceive, it needs to be defined to retw, otherwise error return from those functions segfaults. This fixes the following testsuite failures: .... tst-mqueue1 FAIL tst-mqueue1 got 1 expected 0 Didn't expect signal from child: got `Segmentation fault' .... tst-mqueue2 FAIL tst-mqueue2 got 1 expected 0 Didn't expect signal from child: got `Segmentation fault' .... tst-mqueue3 FAIL tst-mqueue3 got 1 expected 0 Didn't expect signal from child: got `Segmentation fault' .... tst-mqueue4 FAIL tst-mqueue4 got 1 expected 0 Didn't expect signal from child: got `Segmentation fault' .... tst-mqueue5 FAIL tst-mqueue5 got 1 expected 0 Didn't expect signal from child: got `Segmentation fault' .... tst-mqueue6 FAIL tst-mqueue6 got 1 expected 0 Didn't expect signal from child: got `Segmentation fault' Signed-off-by: Max Filippov --- libc/sysdeps/linux/xtensa/sysdep.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libc') diff --git a/libc/sysdeps/linux/xtensa/sysdep.h b/libc/sysdeps/linux/xtensa/sysdep.h index d674084e2..4873a413d 100644 --- a/libc/sysdeps/linux/xtensa/sysdep.h +++ b/libc/sysdeps/linux/xtensa/sysdep.h @@ -132,6 +132,9 @@ #define PSEUDO_END_ERRVAL(name) \ END (name) +#undef ret_ERRVAL +#define ret_ERRVAL retw + #if defined _LIBC_REENTRANT # if defined USE___THREAD # ifndef NOT_IN_libc -- cgit v1.2.3