summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2015-06-22 04:10:54 +0300
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-23 21:41:17 +0200
commitf347524fade67b41fb8e46283a6f0ae4aa19e6b0 (patch)
tree9fbe23358d999e9cb601ea15b743db8579515b22 /libc
parentf3a8267dabab20b095abe36e4a2be14ccc34b38e (diff)
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 <jcmvbkbc@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/xtensa/sysdep.h3
1 files changed, 3 insertions, 0 deletions
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