Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/sys/errno.h')
-rw-r--r--newlib/libc/machine/spu/sys/errno.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/newlib/libc/machine/spu/sys/errno.h b/newlib/libc/machine/spu/sys/errno.h
index 28a327774..62768126e 100644
--- a/newlib/libc/machine/spu/sys/errno.h
+++ b/newlib/libc/machine/spu/sys/errno.h
@@ -19,10 +19,6 @@
on which it is based, except values used or returned by syscalls must
be those of the Linux ppc. */
-/* errno is not a global variable, because that would make using it
- non-reentrant. Instead, its address is returned by the function
- __errno. */
-
#ifndef _SYS_ERRNO_H_
#ifdef __cplusplus
extern "C" {
@@ -31,10 +27,8 @@ extern "C" {
#include <sys/reent.h>
-#ifndef _REENT_ONLY
-#define errno (*__errno())
-extern int *__errno _PARAMS ((void));
-#endif
+extern struct _reent _reent_data;
+#define errno (_reent_data._errno)
/* Please don't use these variables directly.
Use strerror instead. */