aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gsocket.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2008-08-11 17:04:07 +0000
committerSamuel Tardieu <sam@gcc.gnu.org>2008-08-11 17:04:07 +0000
commit269b85b72388861958e4b4343c4a101765ca763c (patch)
tree10e79b873337c7ce31d493d8cb0abbed660fe17d /gcc/ada/gsocket.h
parentdd79750c58271a30f8b79d055f4ad166f5a00887 (diff)
downloadgcc-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/gsocket.h')
-rw-r--r--gcc/ada/gsocket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/gsocket.h b/gcc/ada/gsocket.h
index 58c4abb..0dca1a9 100644
--- a/gcc/ada/gsocket.h
+++ b/gcc/ada/gsocket.h
@@ -216,7 +216,7 @@
#if defined (_AIX) || defined (__FreeBSD__) || defined (__hpux__) || defined (__osf__) || defined (_WIN32) || defined (__APPLE__)
# define HAVE_THREAD_SAFE_GETxxxBYyyy 1
-#elif defined (sgi) || defined (linux) || defined (__GLIBC__) || (defined (sun) && defined (__SVR4) && !defined (__vxworks))
+#elif defined (sgi) || defined (linux) || defined (__GLIBC__) || (defined (sun) && defined (__SVR4) && !defined (__vxworks)) || defined(__rtems__)
# define HAVE_GETxxxBYyyy_R 1
#endif
@@ -226,7 +226,7 @@
# define Need_Netdb_Buffer 0
#endif
-#if defined (__FreeBSD__) || defined (__vxworks)
+#if defined (__FreeBSD__) || defined (__vxworks) || defined(__rtems__)
# define Has_Sockaddr_Len 1
#else
# define Has_Sockaddr_Len 0