[Ada] Add <stdlib.h> #include in cstreams.c
authorJoel Brobecker <brobecker@adacore.com>
Fri, 11 Mar 2022 04:22:26 +0000 (04:22 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 16 May 2022 08:42:05 +0000 (08:42 +0000)
commit9abb17d9fad628a237136b3348ca33f189d2ad2b
treee1038489440d7f0e55a7b061b1944a83a5bd1e7f
parentdec636b831a286ab9f7773364a6f0cedf08ac9c0
[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.
gcc/ada/cstreams.c