mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-13 04:56:14 -05:00
update newlib patches
This commit is contained in:
@@ -6180,8 +6180,8 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/warning.h newlib-1.19.0-ppc/libglo
|
||||
+
|
||||
+#endif /* __WARNING_H__ */
|
||||
diff -Nbaur newlib-1.19.0/libgloss/libsysbase/write.c newlib-1.19.0-ppc/libgloss/libsysbase/write.c
|
||||
--- newlib-1.19.0/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ newlib-1.19.0-ppc/libgloss/libsysbase/write.c 2011-01-13 13:58:53.000000000 +0000
|
||||
--- newlib-1.19.0/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ newlib-1.19.0-ppc/libgloss/libsysbase/write.c 2011-01-13 16:27:13.000000000 +0000
|
||||
@@ -0,0 +1,49 @@
|
||||
+#include "config.h"
|
||||
+#include <_ansi.h>
|
||||
@@ -6217,6 +6217,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/write.c newlib-1.19.0-ppc/libgloss
|
||||
+
|
||||
+ if(fileDesc!=-1) {
|
||||
+ if ( fileDesc < 3) {
|
||||
+ dev = fileDesc;
|
||||
+ ret = len;
|
||||
+ } else {
|
||||
+ handle = __get_handle(fileDesc);
|
||||
@@ -7187,6 +7188,27 @@ diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fseek.c newlib-1.19.0-ppc/newlib/lib
|
||||
+ off_t offset _AND
|
||||
int whence)
|
||||
{
|
||||
return _fseek_r (_REENT, fp, offset, whence);
|
||||
diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fseeko.c newlib-1.19.0-ppc/newlib/libc/stdio/fseeko.c
|
||||
--- newlib-1.19.0/newlib/libc/stdio/fseeko.c 2004-04-23 21:01:55.000000000 +0100
|
||||
+++ newlib-1.19.0-ppc/newlib/libc/stdio/fseeko.c 2011-01-13 15:29:40.000000000 +0000
|
||||
@@ -26,7 +26,7 @@
|
||||
_off_t offset _AND
|
||||
int whence)
|
||||
{
|
||||
- return _fseek_r (ptr, fp, (long)offset, whence);
|
||||
+ return _fseek_r (ptr, fp, offset, whence);
|
||||
}
|
||||
|
||||
#ifndef _REENT_ONLY
|
||||
@@ -38,7 +38,7 @@
|
||||
int whence)
|
||||
{
|
||||
/* for now we simply cast since off_t should be long */
|
||||
- return _fseek_r (_REENT, fp, (long)offset, whence);
|
||||
+ return _fseek_r (_REENT, fp, offset, whence);
|
||||
}
|
||||
|
||||
#endif /* !_REENT_ONLY */
|
||||
diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fvwrite.c newlib-1.19.0-ppc/newlib/libc/stdio/fvwrite.c
|
||||
--- newlib-1.19.0/newlib/libc/stdio/fvwrite.c 2007-07-13 21:37:53.000000000 +0100
|
||||
|
||||
Reference in New Issue
Block a user