summaryrefslogtreecommitdiff
path: root/cad/fastcap/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'cad/fastcap/patches/patch-ae')
-rw-r--r--cad/fastcap/patches/patch-ae24
1 files changed, 24 insertions, 0 deletions
diff --git a/cad/fastcap/patches/patch-ae b/cad/fastcap/patches/patch-ae
new file mode 100644
index 00000000000..995066da9c1
--- /dev/null
+++ b/cad/fastcap/patches/patch-ae
@@ -0,0 +1,24 @@
+$NetBSD: patch-ae,v 1.1 2004/06/16 15:33:00 minskim Exp $
+
+--- src/resusage.h.orig 1992-07-15 17:17:48.000000000 -0500
++++ src/resusage.h
+@@ -52,16 +52,16 @@ struct tms timestuff;
+ /* define macros for time and resident memory usage checks */
+
+ static double dtime = 0.0;
+-static long stime, utime;
++static long _stime, utime;
+
+ #ifdef NOTOTHER
+
+ #ifdef FOUR /* 4.2,3BSD (tested: Sun4, IBM6000, DEC5000) */
+ #define starttimer getrusage(RUSAGE_SELF, &timestuff); \
+-stime = timestuff.ru_utime.tv_sec; \
++_stime = timestuff.ru_utime.tv_sec; \
+ utime = timestuff.ru_utime.tv_usec
+ #define stoptimer getrusage(RUSAGE_SELF, &timestuff); \
+-dtime = (double)(timestuff.ru_utime.tv_sec - stime) \
++dtime = (double)(timestuff.ru_utime.tv_sec - _stime) \
+ + 1.0e-6*(double)(timestuff.ru_utime.tv_usec - utime)
+ #define DUMPRSS /* */
+ #endif /* FOUR */