From aa76a0ea4683ea9a0cae8c75141248aa5c48a886 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sun, 16 Jun 2024 09:49:04 +0100 Subject: [PATCH] devkitA64: make read/write posix compliant --- dka64/patches/newlib-4.4.0.20231231.patch | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dka64/patches/newlib-4.4.0.20231231.patch b/dka64/patches/newlib-4.4.0.20231231.patch index 37939c8..640f007 100644 --- a/dka64/patches/newlib-4.4.0.20231231.patch +++ b/dka64/patches/newlib-4.4.0.20231231.patch @@ -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 /* floating point macros */ #include /* 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__