This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 3/3] gcc/ada/socket.c: Add conditionals for RTEMS
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Mike Stump <mikestump at comcast dot net>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 11 Aug 2014 13:20:18 -0500
- Subject: Re: [PATCH 3/3] gcc/ada/socket.c: Add conditionals for RTEMS
- Authentication-results: sourceware.org; auth=none
- References: <1407769695-4288-1-git-send-email-joel dot sherrill at oarcorp dot com> <1407769695-4288-3-git-send-email-joel dot sherrill at oarcorp dot com> <3CC59823-2B93-4E3D-9DBE-1DB5BFAE76E1 at comcast dot net>
On 8/11/2014 1:15 PM, Mike Stump wrote:
> On Aug 11, 2014, at 8:08 AM, Joel Sherrill <joel.sherrill@OARcorp.com> wrote:
>> +#if defined(__rtems__)
>> +#include <unistd.h>
>> +/* Required, for read(), write(), and close() */
>> +#endif
> Strikes me as exceptionally odd. Should be done unconditionally, and any system that doesn’t like that should be the odd ball.
I assume on other targets, these get prototyped by some implicit include.
I found it odd that this wasn't included already also.
Any Ada maintainers want to comment?
--
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