aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gsocket.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2008-02-13 19:04:53 +0000
committerJoel Sherrill <joel@gcc.gnu.org>2008-02-13 19:04:53 +0000
commit6a333ca04f20c16c42aa15c004a26ebbc9fad02c (patch)
tree14647ee8187ad1d1a148b61d285e6fbfb10bbb54 /gcc/ada/gsocket.h
parent29a7754d166900ec2f48fd290a5496e0e75bf9bf (diff)
downloadgcc-6a333ca04f20c16c42aa15c004a26ebbc9fad02c.zip
gcc-6a333ca04f20c16c42aa15c004a26ebbc9fad02c.tar.gz
gcc-6a333ca04f20c16c42aa15c004a26ebbc9fad02c.tar.bz2
re PR ada/35143 (Serious regression on ACATS results since 4.2.3)
2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com> PR ada/35143 * env.c: Add __rtems__ to if defined. * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting. * s-osinte-rtems.ads: Add To_Target_Priority prototype and PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add pragma Convention as required. * gsocket.h: Make compile in and out of RTS. * Makefile.in: Add system-rtems.ads. Build DEC extensions. Use g-soccon-rtems.ads. * g-soccon-rtems.ads, system-rtems.ads: New files. From-SVN: r132294
Diffstat (limited to 'gcc/ada/gsocket.h')
-rw-r--r--gcc/ada/gsocket.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ada/gsocket.h b/gcc/ada/gsocket.h
index 7df7ea0..bfdf123 100644
--- a/gcc/ada/gsocket.h
+++ b/gcc/ada/gsocket.h
@@ -6,7 +6,7 @@
* *
* C Header File *
* *
- * Copyright (C) 2004-2006, Free Software Foundation, Inc. *
+ * Copyright (C) 2004-2008, Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@@ -139,7 +139,15 @@
#include <sys/time.h>
#endif
-#if !(defined (VMS) || defined (__MINGW32__) || defined(__rtems__))
+/*
+ * RTEMS has these .h files but not until you have built RTEMS. When
+ * IN_RTS, you only have the .h files in the newlib C library.
+ * Because this file is also included from gen-soccon.c which is built
+ * to run on RTEMS (not IN_RTS), we must distinguish between IN_RTS
+ * and using this file to compile gen-soccon.
+ */
+#if !(defined (VMS) || defined (__MINGW32__) || \
+ (defined(__rtems__) && defined(IN_RTS)))
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>