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 11:03 AM, Thomas Quinot wrote:
* Joel Sherrill, 2010-04-13 :

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.
OK, looks like indeed ESHUTDOWN and ESOCKTNOSUPPORT are Linux specific
extensions.

How about the attached patch?

2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>

    * g-socket.adb: Rewrite case as series of if's to
    avoid error when multiple errno's are not defined
    on a target.
Yes, rewriting into IFs may be a solution.
I am happy to do this. Shouldn't take too long to
submit a tested patch.
OK, great, thanks!



--
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: gsocket1.diff
Description: Text document


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