[PATCH] fix spu errno to reference _impura_data
Jeff Johnston
jjohnstn@redhat.com
Fri Apr 18 11:10:00 GMT 2008
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. */
>
More information about the Newlib
mailing list