From 9abb17d9fad628a237136b3348ca33f189d2ad2b Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 11 Mar 2022 04:22:26 +0000 Subject: [PATCH] [Ada] Add #include in cstreams.c When building the GNAT runtime for QNX, we get the following warning: | cstreams.c: In function '__gnat_full_name': | cstreams.c:209:5: warning: implicit declaration of function 'realpath' | [-Wimplicit-function-declaration] | 209 | realpath (nam, buffer); | | ^~~~~~~~ This commit fixes the warning by adding the corresponding #include of gcc/ada/ * cstreams.c: Add #include. --- gcc/ada/cstreams.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/ada/cstreams.c b/gcc/ada/cstreams.c index e714162e1a8..48f996d09fa 100644 --- a/gcc/ada/cstreams.c +++ b/gcc/ada/cstreams.c @@ -46,6 +46,7 @@ #include #include #include +#include #ifdef _AIX /* needed to avoid conflicting declarations */ -- 2.47.2