Provide CLOCK_REALTIME on Tru64 UNIX

* s-oscons-tmplt.c [__alpha__ && __osf__] (_XOPEN_SOURCE): Define.

From-SVN: r182592
This commit is contained in:
Rainer Orth 2011-12-21 16:08:19 +00:00 committed by Rainer Orth
parent b03eda0dcd
commit 98d361f876
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-12-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* s-oscons-tmplt.c [__alpha__ && __osf__] (_XOPEN_SOURCE): Define.
2011-12-21 Javier Miranda <miranda@adacore.com>
* sem_ch3.ads, sem_ch3.adb (Check_CPP_Type): New subprogram.

View File

@ -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.