diff options
author | Joel Brobecker <brobecker@adacore.com> | 2022-03-11 04:22:26 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-16 08:42:05 +0000 |
commit | 9abb17d9fad628a237136b3348ca33f189d2ad2b (patch) | |
tree | e1038489440d7f0e55a7b061b1944a83a5bd1e7f /gcc/ada/cstreams.c | |
parent | dec636b831a286ab9f7773364a6f0cedf08ac9c0 (diff) | |
download | gcc-9abb17d9fad628a237136b3348ca33f189d2ad2b.zip gcc-9abb17d9fad628a237136b3348ca33f189d2ad2b.tar.gz gcc-9abb17d9fad628a237136b3348ca33f189d2ad2b.tar.bz2 |
[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.
Diffstat (limited to 'gcc/ada/cstreams.c')
-rw-r--r-- | gcc/ada/cstreams.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/cstreams.c b/gcc/ada/cstreams.c index e714162..48f996d 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 */ |