From: Rainer Orth Date: Tue, 5 Dec 2023 10:08:05 +0000 (+0100) Subject: ada: Fix Ada bootstrap on Solaris X-Git-Tag: basepoints/gcc-15~3990 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f33294d68339127741911de2634012b8fecd9122;p=thirdparty%2Fgcc.git ada: Fix Ada bootstrap on Solaris The recent warning patches broke Ada bootstrap on Solaris: adaint.c: In function '__gnat_kill': adaint.c:3597:3: error: implicit declaration of function 'kill' [-Wimplicit-function-declaration] 3597 | kill (pid, sig); | ^~~~ expect.c: In function '__gnat_expect_poll': expect.c:409:5: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 409 | FD_ZERO (&rset); | ^~~~~~~ expect.c:55:1: note: include '' or provide a declaration of 'memset' 54 | #include +++ |+#include 55 | #endif I'm now including the necessary headers: for kill and for memset. Bootstrapped without regressions on i386-pc-solaris2.11, sparc-sun-solaris2.11, x86_64-pc-linux-gnu, and x86_64-apple-darwin23.1.0. 2023-12-03 Rainer Orth gcc/ada: * adaint.c: Include . * expect.c: Include . --- diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index cbff393258e4..61dc368b9d75 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -243,6 +243,7 @@ UINT __gnat_current_ccs_encoding; #define DIR_SEPARATOR '\\' #else +#include #include #endif diff --git a/gcc/ada/expect.c b/gcc/ada/expect.c index 7333c11d9542..add62559d6e5 100644 --- a/gcc/ada/expect.c +++ b/gcc/ada/expect.c @@ -41,6 +41,7 @@ #include "adaint.h" #include +#include #if defined (__vxworks) && defined (__RTP__) # include