This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs cvs, toplev.c fails to compile on openvms/alpha


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]