From 3705d69f503206e2b90606a038a24fe90dcd45f1 Mon Sep 17 00:00:00 2001 From: ro Date: Wed, 21 Dec 2011 16:08:19 +0000 Subject: [PATCH] Provide CLOCK_REALTIME on Tru64 UNIX * s-oscons-tmplt.c [__alpha__ && __osf__] (_XOPEN_SOURCE): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182592 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/s-oscons-tmplt.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index b8f30a9..d7dd99f 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2011-12-21 Rainer Orth + + * s-oscons-tmplt.c [__alpha__ && __osf__] (_XOPEN_SOURCE): Define. + 2011-12-21 Javier Miranda * sem_ch3.ads, sem_ch3.adb (Check_CPP_Type): New subprogram. diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index 5f67820..340abe9 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -85,6 +85,12 @@ pragma Style_Checks ("M32766"); **/ #define _XOPEN_SOURCE 500 +#elif defined (__alpha__) && defined (__osf__) +/** For Tru64 UNIX, _XOPEN_SOURCE must be defined, otherwise CLOCK_REALTIME + ** is not defined. + **/ +#define _XOPEN_SOURCE 500 + #elif defined (__mips) && defined (__sgi) /** 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. -- 2.7.4