diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2008-08-11 17:04:07 +0000 |
---|---|---|
committer | Samuel Tardieu <sam@gcc.gnu.org> | 2008-08-11 17:04:07 +0000 |
commit | 269b85b72388861958e4b4343c4a101765ca763c (patch) | |
tree | 10e79b873337c7ce31d493d8cb0abbed660fe17d /gcc/ada/s-oscons-tmplt.c | |
parent | dd79750c58271a30f8b79d055f4ad166f5a00887 (diff) | |
download | gcc-269b85b72388861958e4b4343c4a101765ca763c.zip gcc-269b85b72388861958e4b4343c4a101765ca763c.tar.gz gcc-269b85b72388861958e4b4343c4a101765ca763c.tar.bz2 |
s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
gcc/ada/
* s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
* gsocket.h, socket.c: Update to support RTEMS.
* gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
From-SVN: r138957
Diffstat (limited to 'gcc/ada/s-oscons-tmplt.c')
-rw-r--r-- | gcc/ada/s-oscons-tmplt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index 8017c38..614a866 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -829,6 +829,14 @@ CND(VEOL2, "Alternative EOL") #endif CND(AF_INET, "IPv4 address family") +/** + ** RTEMS lies and defines AF_INET6 even though there is no IPV6 support. + ** Its TCP/IP stack is in transition. It has newer .h files but no IPV6 yet. + **/ +#if defined(__rtems__) +# undef AF_INET6 +#endif + #ifndef AF_INET6 # define AF_INET6 -1 #else |