OSDN Git Service

* s-oscons-tmplt.c [__mips && __sgi]: Only define _XOPEN5, IOV_MAX
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Nov 2009 21:12:13 +0000 (21:12 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Nov 2009 21:12:13 +0000 (21:12 +0000)
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
gcc/ada/s-oscons-tmplt.c

index 1e00605..cdc2589 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * s-oscons-tmplt.c [__mips && __sgi]: Only define _XOPEN5, IOV_MAX
+       if _XOPEN_IOV_MAX is defined.
+
 2009-11-30  Vasiliy Fofanov  <fofanov@adacore.com>
 
        * vms_data.ads: Add new VMS qualifiers,
index a3f33d1..1e8bd52 100644 (file)
@@ -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 <stdlib.h>
 #include <string.h>