summaryrefslogtreecommitdiff
path: root/gcc/ada/s-oscons-tmplt.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-09-18 16:01:37 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2009-09-18 16:01:37 +0200
commit6465b6a71f79ed135f18fee5f8ab40ecd8265d39 (patch)
tree06dad70a3d428e576ef513e7963e1de582ca8611 /gcc/ada/s-oscons-tmplt.c
parent0816e70ccfa8b42ac5b25fa8ab9c5da2cfea7d58 (diff)
downloadgcc-6465b6a71f79ed135f18fee5f8ab40ecd8265d39.tar.gz
[multiple changes]
2009-09-18 Pascal Obry <obry@adacore.com> * mingw32.h: Activate Unicode support for x86-64 Windows platform. 2009-09-18 Vadim Godunko <godunko@adacore.com> * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX. 2009-09-18 Javier Miranda <miranda@adacore.com> * exp_aggr.adb (Backend_Processing_Possible): Disable backend processing for array aggregates in the VM backend if the array has aliased components. 2009-09-18 Ed Schonberg <schonberg@adacore.com> * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of the prefix indicates a previous semantic error, and this is the first error in the program. 2009-09-18 Bob Duff <duff@adacore.com> * gnat_ugn.texi: Minor editing. From-SVN: r151844
Diffstat (limited to 'gcc/ada/s-oscons-tmplt.c')
-rw-r--r--gcc/ada/s-oscons-tmplt.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c
index c1075d68126..48938d9d9d1 100644
--- a/gcc/ada/s-oscons-tmplt.c
+++ b/gcc/ada/s-oscons-tmplt.c
@@ -79,8 +79,16 @@ pragma Style_Checks ("M32766");
**/
#if defined (__linux__) && !defined (_XOPEN_SOURCE)
-/* For Linux _XOPEN_SOURCE must be defined, otherwise IOV_MAX is not defined */
+/** For Linux _XOPEN_SOURCE must be defined, otherwise IOV_MAX is not defined
+ **/
#define _XOPEN_SOURCE 500
+
+#elif defined (__mips) && defined (__sgi)
+/** For IRIX _XOPEN5 must be defined and _XOPEN_IOV_MAX must be used as IOV_MAX,
+ ** otherwise IOV_MAX is not defined.
+ **/
+#define _XOPEN5
+#define IOV_MAX _XOPEN_IOV_MAX
#endif
#include <stdlib.h>