diff options
Diffstat (limited to 'newlib/libc/machine/spu/perror.c')
-rw-r--r-- | newlib/libc/machine/spu/perror.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/machine/spu/perror.c b/newlib/libc/machine/spu/perror.c index ad79a48db..28598c85d 100644 --- a/newlib/libc/machine/spu/perror.c +++ b/newlib/libc/machine/spu/perror.c @@ -2,13 +2,17 @@ #include "c99ppe.h" +#ifndef _REENT_ONLY + void _DEFUN (perror, (s), _CONST char *s) { + CHECK_STD_INIT(_REENT); + send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PERROR, &s); return; } - +#endif /* ! _REENT_ONLY */ |