This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Ada Broken with h_errno change
- From: Arnaud Charlet <charlet at adacore dot com>
- To: "Joel Sherrill <joel at OARcorp dot com>" <joel dot sherrill at OARcorp dot com>
- Cc: gcc at gcc dot gnu dot org, Thomas Quinot <quinot at adacore dot com>
- Date: Thu, 17 Nov 2005 09:43:41 +0100
- Subject: Re: Ada Broken with h_errno change
- References: <437B9CEA.9000109@OARcorp.com>
> RTEMS has networking functions but they are not available at this stage
> during the build. You only have the .h files provided with newlib. So
> this patch is needed to make *-rtems compile again. OK to commit?
Please post the corresponding ChangeLog so that this patch can be reviewed
and approved, thanks.
> Index: gcc/ada/socket.c
> ===================================================================
> --- gcc/ada/socket.c (revision 107093)
> +++ gcc/ada/socket.c (working copy)
> @@ -190,6 +190,10 @@
> #elif defined(VMS)
> return errno;
> #else
> +#if defined(__rtems__)
> + /* No networking .h files are available from newlib so extern this. */
> + extern int h_errno;
> +#endif
> return h_errno;
> #endif
> }