mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-23 02:44:15 -05:00
update newlib patches
This commit is contained in:
@@ -6206,8 +6206,8 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/warning.h newlib-1.19.0-arm/libglo
|
|||||||
+
|
+
|
||||||
+#endif /* __WARNING_H__ */
|
+#endif /* __WARNING_H__ */
|
||||||
diff -Nbaur newlib-1.19.0/libgloss/libsysbase/write.c newlib-1.19.0-arm/libgloss/libsysbase/write.c
|
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/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
|
+++ newlib-1.19.0-arm/libgloss/libsysbase/write.c 2011-01-13 16:28:45.000000000 +0000
|
||||||
@@ -0,0 +1,49 @@
|
@@ -0,0 +1,49 @@
|
||||||
+#include "config.h"
|
+#include "config.h"
|
||||||
+#include <_ansi.h>
|
+#include <_ansi.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!=-1) {
|
||||||
+ if ( fileDesc < 3) {
|
+ if ( fileDesc < 3) {
|
||||||
|
+ dev = fileDesc;
|
||||||
+ ret = len;
|
+ ret = len;
|
||||||
+ } else {
|
+ } else {
|
||||||
+ handle = __get_handle(fileDesc);
|
+ 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__ */
|
+#endif /* __WARNING_H__ */
|
||||||
diff -Nbaur newlib-1.19.0/libgloss/libsysbase/write.c newlib-1.19.0-ppc/libgloss/libsysbase/write.c
|
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/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-ppc/libgloss/libsysbase/write.c 2011-01-13 16:27:13.000000000 +0000
|
||||||
@@ -0,0 +1,49 @@
|
@@ -0,0 +1,49 @@
|
||||||
+#include "config.h"
|
+#include "config.h"
|
||||||
+#include <_ansi.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!=-1) {
|
||||||
+ if ( fileDesc < 3) {
|
+ if ( fileDesc < 3) {
|
||||||
|
+ dev = fileDesc;
|
||||||
+ ret = len;
|
+ ret = len;
|
||||||
+ } else {
|
+ } else {
|
||||||
+ handle = __get_handle(fileDesc);
|
+ 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
|
+ off_t offset _AND
|
||||||
int whence)
|
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 */
|
#endif /* !_REENT_ONLY */
|
||||||
diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fvwrite.c newlib-1.19.0-ppc/newlib/libc/stdio/fvwrite.c
|
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/newlib/libc/stdio/fvwrite.c 2007-07-13 21:37:53.000000000 +0100
|
||||||
|
|||||||
Reference in New Issue
Block a user