From b1923961a42cc8e531c3dfc4e62ce30ef887beb7 Mon Sep 17 00:00:00 2001 From: Gordon Freeman Date: Fri, 28 Jun 2024 07:54:47 +0200 Subject: [PATCH 1/3] Update pipe.c GCC14 wants unistd.h included for the function "close" otherwise the compiler will give you an error: Implicit declaration of function 'close' is invalid in C99 --- newlib/libc/sys/vita/pipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/sys/vita/pipe.c b/newlib/libc/sys/vita/pipe.c index 835e93aae..adb07d8db 100644 --- a/newlib/libc/sys/vita/pipe.c +++ b/newlib/libc/sys/vita/pipe.c @@ -31,6 +31,7 @@ DEALINGS IN THE SOFTWARE. #include #include #include +#include #include #include From 2b89b617ae6ae814bdc42e011079d64d8b8ed19f Mon Sep 17 00:00:00 2001 From: Gordon Freeman Date: Fri, 28 Jun 2024 07:55:24 +0200 Subject: [PATCH 2/3] Update socket.c GCC14 wants unistd.h included for the function "close" otherwise the compiler will give you an error: Implicit declaration of function 'close' is invalid in C99 --- newlib/libc/sys/vita/socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/sys/vita/socket.c b/newlib/libc/sys/vita/socket.c index 8990c101c..a3c451598 100644 --- a/newlib/libc/sys/vita/socket.c +++ b/newlib/libc/sys/vita/socket.c @@ -28,6 +28,7 @@ DEALINGS IN THE SOFTWARE. #include #include #include +#include #include #include From d383d182e4d84f93329187c4e7df975e5c18015c Mon Sep 17 00:00:00 2001 From: Gordon Freeman Date: Fri, 28 Jun 2024 08:33:47 +0200 Subject: [PATCH 3/3] Update dirent.c GCC14 wants dirent.h included for the function "readdir", "opendir", "closedir" otherwise the compiler will give you the following errors:: 1) implicit declaration of function 'opendir' 2) implicit declaration of function 'readdir' 3) implicit declaration of function 'closedir' 4) initialization of 'DIR *' {aka 'struct DIR_ *'} from 'int' makes pointer from integer without a cast 5) assignment to 'struct dirent *' from 'int' makes pointer from integer without a cast --- newlib/libc/sys/vita/dirent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/sys/vita/dirent.c b/newlib/libc/sys/vita/dirent.c index bab96834e..8b51538c9 100644 --- a/newlib/libc/sys/vita/dirent.c +++ b/newlib/libc/sys/vita/dirent.c @@ -22,7 +22,7 @@ DEALINGS IN THE SOFTWARE. */ -#include +#include #include #include #include