From 0735af8d71db1517f14d80a184c9edb92b301c17 Mon Sep 17 00:00:00 2001 From: ro Date: Mon, 30 Nov 2009 21:12:13 +0000 Subject: [PATCH] * s-oscons-tmplt.c [__mips && __sgi]: Only define _XOPEN5, IOV_MAX if _XOPEN_IOV_MAX is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154841 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/s-oscons-tmplt.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 1e00605..cdc2589 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2009-11-30 Rainer Orth + + * s-oscons-tmplt.c [__mips && __sgi]: Only define _XOPEN5, IOV_MAX + if _XOPEN_IOV_MAX is defined. + 2009-11-30 Vasiliy Fofanov * vms_data.ads: Add new VMS qualifiers, diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index a3f33d1..1e8bd52 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -84,12 +84,14 @@ pragma Style_Checks ("M32766"); #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. +/** For IRIX 6, _XOPEN5 must be defined and _XOPEN_IOV_MAX must be used as + ** IOV_MAX, otherwise IOV_MAX is not defined. IRIX 5 has neither. **/ +#ifdef _XOPEN_IOV_MAX #define _XOPEN5 #define IOV_MAX _XOPEN_IOV_MAX #endif +#endif #include #include -- 2.7.4