> 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
>  }

Reply via email to