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: Mike Stump <mikestump at comcast dot net>
- To: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 Aug 2014 11:15:44 -0700
- 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>
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.