This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fix spu errno to reference _impura_data


Ok, done.

-- Jeff J.

Patrick Mansfield wrote:
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. */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]