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/socket.c | |
parent | dd79750c58271a30f8b79d055f4ad166f5a00887 (diff) | |
download | gcc-269b85b72388861958e4b4343c4a101765ca763c.tar.gz |
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/socket.c')
-rw-r--r-- | gcc/ada/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/socket.c b/gcc/ada/socket.c index 9653aae1dfa..aadc9b084f7 100644 --- a/gcc/ada/socket.c +++ b/gcc/ada/socket.c @@ -240,7 +240,7 @@ __gnat_safe_getservbyname (const char *name, const char *proto, struct servent *rh; int ri; -#if defined(__linux__) || defined(__GLIBC__) +#if defined(__linux__) || defined(__GLIBC__) || defined(__rtems__) (void) getservbyname_r (name, proto, ret, buf, buflen, &rh); #else rh = getservbyname_r (name, proto, ret, buf, buflen); @@ -256,7 +256,7 @@ __gnat_safe_getservbyport (int port, const char *proto, struct servent *rh; int ri; -#if defined(__linux__) || defined(__GLIBC__) +#if defined(__linux__) || defined(__GLIBC__) || defined(__rtems__) (void) getservbyport_r (port, proto, ret, buf, buflen, &rh); #else rh = getservbyport_r (port, proto, ret, buf, buflen); |