summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/stdio.c')
-rw-r--r--newlib/libc/stdio/stdio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/newlib/libc/stdio/stdio.c b/newlib/libc/stdio/stdio.c
index abb7c2335..ddebc8a39 100644
--- a/newlib/libc/stdio/stdio.c
+++ b/newlib/libc/stdio/stdio.c
@@ -66,7 +66,10 @@ __swrite (cookie, buf, n)
int n;
{
register FILE *fp = (FILE *) cookie;
- int w, oldmode=0;
+ int w;
+#ifdef __SCLE
+ int oldmode=0;
+#endif
if (fp->_flags & __SAPP)
(void) _lseek_r (fp->_data, fp->_file, (off_t) 0, SEEK_END);