devkitA64: make read/write posix compliant

This commit is contained in:
Dave Murphy
2024-06-16 09:49:04 +01:00
parent 2429e9ee7d
commit aa76a0ea46

View File

@@ -11065,10 +11065,10 @@ index f810b008f..ca7e11dc7 100644
+
#endif /* !_SYS__TIMESPEC_H_ */
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index 5dcc77a80..fdf232649 100644
index 5dcc77a80..10a992c21 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -4,8 +4,21 @@
@@ -4,8 +4,26 @@
#include <machine/ieeefp.h> /* floating point macros */
#include <sys/features.h> /* POSIX defs */
@@ -11088,6 +11088,11 @@ index 5dcc77a80..fdf232649 100644
+#define MALLOC_ALIGNMENT_THRESHOLD 64
+#define __BUFSIZ__ 32768
+#define __DYNAMIC_REENT__
+#endif
+
+#ifdef __DEVKITPRO__
+#define _READ_WRITE_RETURN_TYPE _ssize_t
+#define _READ_WRITE_BUFSIZE_TYPE size_t
#endif
#ifdef __AMDGCN__