From: ro Date: Wed, 21 Dec 2011 16:08:19 +0000 (+0000) Subject: Provide CLOCK_REALTIME on Tru64 UNIX X-Git-Tag: upstream/4.9.2~15337 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3705d69f503206e2b90606a038a24fe90dcd45f1;p=platform%2Fupstream%2Flinaro-gcc.git 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 --- 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.