[gcc r13-492] [Ada] Add <stdlib.h> #include in cstreams.c
Pierre-Marie de Rodat
pmderodat@gcc.gnu.org
Mon May 16 08:44:23 GMT 2022
https://gcc.gnu.org/g:9abb17d9fad628a237136b3348ca33f189d2ad2b
commit r13-492-g9abb17d9fad628a237136b3348ca33f189d2ad2b
Author: Joel Brobecker <brobecker@adacore.com>
Date: Fri Mar 11 04:22:26 2022 +0000
[Ada] Add <stdlib.h> #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 <stdlib.h>
gcc/ada/
* cstreams.c: Add <stdlib.h> #include.
Diff:
---
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 <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <stdlib.h>
#ifdef _AIX
/* needed to avoid conflicting declarations */
More information about the Gcc-cvs
mailing list