mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-22 01:54:32 -05:00
update newlib patches
This commit is contained in:
parent
8ecf47d91e
commit
1e6f3d3f1d
|
|
@ -6206,8 +6206,8 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/warning.h newlib-1.19.0-arm/libglo
|
|||
+#endif /* __WARNING_H__ */
|
||||
diff -Nbaur newlib-1.19.0/libgloss/libsysbase/write.c newlib-1.19.0-arm/libgloss/libsysbase/write.c
|
||||
--- newlib-1.19.0/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ newlib-1.19.0-arm/libgloss/libsysbase/write.c 2010-12-18 14:40:27.000000000 +0000
|
||||
@@ -0,0 +1,48 @@
|
||||
+++ newlib-1.19.0-arm/libgloss/libsysbase/write.c 2011-01-13 16:28:45.000000000 +0000
|
||||
@@ -0,0 +1,49 @@
|
||||
+#include "config.h"
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
|
|
@ -6243,6 +6243,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/write.c newlib-1.19.0-arm/libgloss
|
|||
+ if(fileDesc!=-1) {
|
||||
+ if ( fileDesc < 3) {
|
||||
+ dev = fileDesc;
|
||||
+ ret = len;
|
||||
+ } else {
|
||||
+ handle = __get_handle(fileDesc);
|
||||
+
|
||||
|
|
|
|||
|
|
@ -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
|
||||
@@ -0,0 +1,48 @@
|
||||
+++ 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>
|
||||
+#include <_syslist.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
|
|||
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
|
||||
+++ newlib-1.19.0-ppc/newlib/libc/stdio/fvwrite.c 2011-01-13 13:58:57.000000000 +0000
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user