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')
-rw-r--r--newlib/libc/machine/spu/spu_timer_slih.c2
-rw-r--r--newlib/libc/machine/spu/strcpy.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/machine/spu/spu_timer_slih.c b/newlib/libc/machine/spu/spu_timer_slih.c
index 93cfa5ea2..8b54b1362 100644
--- a/newlib/libc/machine/spu/spu_timer_slih.c
+++ b/newlib/libc/machine/spu/spu_timer_slih.c
@@ -55,7 +55,7 @@ __reset_spu_decr (int val)
value is the current timeout value minus the current decrementer value.
Occasionally the read returns 0 - a second read will clear this
condition. */
- int decval0 = spu_readch (SPU_RdDec);
+ spu_readch (SPU_RdDec);
int decval = spu_readch (SPU_RdDec);
/* Restart decrementer with next timeout val. */
__enable_spu_decr (enable_val, mask);
diff --git a/newlib/libc/machine/spu/strcpy.h b/newlib/libc/machine/spu/strcpy.h
index b407eaf5b..9040575ec 100644
--- a/newlib/libc/machine/spu/strcpy.h
+++ b/newlib/libc/machine/spu/strcpy.h
@@ -30,6 +30,7 @@
#include <spu_intrinsics.h>
#include "vec_literal.h"
+#include <string.h>
/*
* Supply an inline _strncpy for strcpy/cat and strncpy/cat. Relies on