This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
egcs cvs, toplev.c fails to compile on openvms/alpha
- To: "egcs patches list" <egcs-patches at cygnus dot com>
- Subject: egcs cvs, toplev.c fails to compile on openvms/alpha
- From: "Klaus Kaempf" <kkaempf at rmi dot de>
- Date: Thu, 2 Jul 1998 17:42:56 +0200
- Reply-To: "Klaus Kaempf" <kkaempf at rmi dot de>
The current toplev.c fails to compile on openVMS/Alpha.
digital in their infinite wisdom decided to define '_SC_CLK_TCK' in unistd.h but
only supports
'struct tms' in time.h for openVMS 7.x. So the check for #ifdef _SC_CLK_TCK in
toplev.c fails
on openVMS 6.x
Here's a patch:
*** toplev.c-orig Thu Jul 2 17:39:02 1998
--- toplev.c Thu Jul 2 17:24:31 1998
*************** get_run_time ()
*** 1057,1063 ****
else
return (clock() * 1000);
#else /* not _WIN32 */
! #ifdef _SC_CLK_TCK
{
static int tick;
struct tms tms;
--- 1057,1063 ----
else
return (clock() * 1000);
#else /* not _WIN32 */
! #if defined (_SC_CLK_TCK) && !defined (VMS)
{
static int tick;
struct tms tms;
---
Klaus Kaempf kkaempf@rmi.de
Jakobstr. 181
D-52064 Aachen Yes, my email account changed.