Skip to content

Commit aa76a0e

Browse files
committed
devkitA64: make read/write posix compliant
1 parent 2429e9e commit aa76a0e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dka64/patches/newlib-4.4.0.20231231.patch

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11065,10 +11065,10 @@ index f810b008f..ca7e11dc7 100644
1106511065
+
1106611066
#endif /* !_SYS__TIMESPEC_H_ */
1106711067
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
11068-
index 5dcc77a80..fdf232649 100644
11068+
index 5dcc77a80..10a992c21 100644
1106911069
--- a/newlib/libc/include/sys/config.h
1107011070
+++ b/newlib/libc/include/sys/config.h
11071-
@@ -4,8 +4,21 @@
11071+
@@ -4,8 +4,26 @@
1107211072
#include <machine/ieeefp.h> /* floating point macros */
1107311073
#include <sys/features.h> /* POSIX defs */
1107411074

@@ -11088,6 +11088,11 @@ index 5dcc77a80..fdf232649 100644
1108811088
+#define MALLOC_ALIGNMENT_THRESHOLD 64
1108911089
+#define __BUFSIZ__ 32768
1109011090
+#define __DYNAMIC_REENT__
11091+
+#endif
11092+
+
11093+
+#ifdef __DEVKITPRO__
11094+
+#define _READ_WRITE_RETURN_TYPE _ssize_t
11095+
+#define _READ_WRITE_BUFSIZE_TYPE size_t
1109111096
#endif
1109211097

1109311098
#ifdef __AMDGCN__

0 commit comments

Comments
 (0)