This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] GNAT s-oscons-tmplt.c multiple undefined errnos


On 04/13/2010 09:23 AM, Thomas Quinot wrote:
* Joel Sherrill, 2010-04-13 :

You are expecting errnos not defined by POSIX to be there.
newlib has gone to a fairly pure set of POSIX errnos. Would
it be better to just rewrite the g-socket.adb case into a
series of if's
What are the undefined cases seen in newlib?

Newlib always defines the POSIX errnos and there are conditionals for Linux and Cygwin. I cut out the common part and am attaching the conditional parts.

Yes, rewriting into IFs may
be a solution.


I am happy to do this. Shouldn't take too long to submit a tested patch.

--
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


Attachment: errnos
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]