freebsd-ports/devel/cocktail/files/patch-reuse-c-rSystem.c
Pav Lucistnik c0150116c3 Add cocktail, a set of program generators or compiler construction tools
for nearly all phases of a compiler. It has been developed until 1993
at the Karlsruhe research lab of GMD, the German National Research Center
for Information Technology.

PR:		ports/65164
Submitted by:	Willem Jan Withagen <wjw@withagen.nl>
2004-05-04 21:07:46 +00:00

23 lines
499 B
C

--- ../../work/cocktail-9309//./reuse/c/rSystem.c Tue Feb 15 14:26:43 1994
+++ ./reuse/c/rSystem.c Wed Mar 31 22:35:06 2004
@@ -17,9 +17,9 @@
# include "rSystem.h"
# ifdef m68000
-# define hz 50
+# define HZ 50
# else
-# define hz 60
+# define HZ 60
# endif
# ifndef UNIX
@@ -156,7 +156,7 @@
# else
struct tms buffer;
(void) times (& buffer);
- return (buffer.tms_utime + buffer.tms_stime) * 1000 / hz;
+ return (buffer.tms_utime + buffer.tms_stime) * 1000 / HZ;
# endif
}