This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] fix spu errno to reference _impura_data
- From: Patrick Mansfield <patmans at us dot ibm dot com>
- To: Jeff Johnston <jjohnstn at redhat dot com>
- Cc: newlib at sourceware dot org
- Date: Wed, 16 Apr 2008 12:16:52 -0700
- Subject: [PATCH] fix spu errno to reference _impura_data
- References: <20080416184142.GA8925@us.ibm.com> <48064975.8040004@redhat.com>
OK here is the other piece that was missing, on top of the previous patch
(or on top of current newlib CVS):
newlib ChangeLog
2008-04-16 Patrick Mansfield <patmans@us.ibm.com>
* libc/machine/spu/sys/errno.h: Use _impure_data, not _reent_data.
Index: quilt/newlib/libc/machine/spu/sys/errno.h
===================================================================
--- quilt.orig/newlib/libc/machine/spu/sys/errno.h
+++ quilt/newlib/libc/machine/spu/sys/errno.h
@@ -27,8 +27,8 @@ extern "C" {
#include <sys/reent.h>
-extern struct _reent _reent_data;
-#define errno (_reent_data._errno)
+extern struct _reent _impure_data;
+#define errno (_impure_data._errno)
/* Please don't use these variables directly.
Use strerror instead. */