@@ -9480,7 +9480,7 @@ index a7d4bc52d..6b06ce5a5 100644
94809480 #ifdef __rtems__
94819481diff --git a/newlib/libc/include/sys/iosupport.h b/newlib/libc/include/sys/iosupport.h
94829482new file mode 100644
9483- index 000000000..a38b71599
9483+ index 000000000..3a7c44c28
94849484--- /dev/null
94859485+++ b/newlib/libc/include/sys/iosupport.h
94869486@@ -0,0 +1,127 @@
@@ -9493,7 +9493,7 @@ index 000000000..a38b71599
94939493+ extern "C" {
94949494+ #endif
94959495+
9496- + #include <reent.h>
9496+ + #include <sys/ reent.h>
94979497+ #include <sys/stat.h>
94989498+ #include <sys/statvfs.h>
94999499+ #include <sys/time.h>
@@ -9643,10 +9643,19 @@ index 9a6f115a6..142e71d35 100644
96439643 #define MAXPATHLEN PATH_MAX
96449644
96459645diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
9646- index a02e7c2bd..61de73f88 100644
9646+ index a02e7c2bd..5bade6497 100644
96479647--- a/newlib/libc/include/sys/reent.h
96489648+++ b/newlib/libc/include/sys/reent.h
9649- @@ -420,6 +420,8 @@ struct _reent
9649+ @@ -45,6 +45,8 @@ struct _reent;
9650+
9651+ struct __locale_t;
9652+
9653+ + void * memset (void *, int, size_t);
9654+ +
9655+ /*
9656+ * If _REENT_SMALL is defined, we make struct _reent as small as possible,
9657+ * by having nearly everything possible allocated at first use.
9658+ @@ -420,6 +422,8 @@ struct _reent
96509659 __FILE *__sf; /* file descriptors */
96519660 struct _misc_reent *_misc; /* strtok, multibyte states */
96529661 char *_signal_buf; /* strsignal */
@@ -9655,7 +9664,7 @@ index a02e7c2bd..61de73f88 100644
96559664 };
96569665
96579666 # define _REENT_INIT(var) \
9658- @@ -648,6 +650 ,8 @@ struct _reent
9667+ @@ -648,6 +652 ,8 @@ struct _reent
96599668
96609669 /* signal info */
96619670 void (**_sig_func)(int);
0 commit comments