From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27401 invoked by alias); 17 Nov 2005 08:44:50 -0000 Received: (qmail 27389 invoked by uid 22791); 17 Nov 2005 08:44:48 -0000 Received: from province.act-europe.fr (HELO province.act-europe.fr) (212.157.227.214) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 08:44:48 +0000 Received: by province.act-europe.fr (Postfix, from userid 525) id A7982B8439; Thu, 17 Nov 2005 09:43:41 +0100 (CET) Date: Thu, 17 Nov 2005 08:44:00 -0000 From: Arnaud Charlet To: "Joel Sherrill " Cc: gcc@gcc.gnu.org, Thomas Quinot Subject: Re: Ada Broken with h_errno change Message-ID: <20051117084341.GB36020@adacore.com> References: <437B9CEA.9000109@OARcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <437B9CEA.9000109@OARcorp.com> User-Agent: Mutt/1.4.2.1i Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2005-11/txt/msg00757.txt.bz2 > 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 > }