[ada] Provide CLOCK_REALTIME on Tru64 UNIX

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Tue Dec 20 16:55:00 GMT 2011


Some patch within the last week has broken Tru64 UNIX Ada bootstrap:

s-taprop.adb:46:12: warning: no entities of "Os_Constants" are referenced
s-taprop.adb:58:04: warning: no entities of "OSC" are referenced
s-taprop.adb:594:35: "CLOCK_RT_Ada" not declared in "OS_Constants"
make[6]: *** [s-taprop.o] Error 1

The definition of CLOCK_REALTIME in <time.h> is only visible if
_POSIX_C_SOURCE >= 199309L, which isn't the case by default, but implied
by _XOPEN_SOURCE = 500.

The following patch does this and allowed the build to complete.  make
check is still running.

Ok for mainline if it passes?

	Rainer


2011-12-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: osf-ada.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111220/4d33ce01/attachment.bin>
-------------- next part --------------


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


More information about the Gcc-patches mailing list