summarylogtreecommitdiffstats
path: root/fix_gettimeofday.patch
blob: cfb208dd5172b4b59ce94e39ff7a5ee5e9b0587a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- fem/src/CPUTime.c.orig	2020-11-10 19:52:44.000000000 +0000
+++ fem/src/CPUTime.c	2025-05-23 22:08:17.596859248 +0100
@@ -72,7 +72,6 @@
 static struct rusage usage;
 
 static struct timeval tp;
-static struct timezone tzp;
 
 #ifdef USE_ISO_C_BINDINGS
 double cputime ()
@@ -83,7 +82,7 @@
 
 double realtime()
 {
-  gettimeofday( &tp,&tzp );
+  gettimeofday(&tp, NULL);
   return (double) tp.tv_sec + tp.tv_usec*1.0e-6;
 }
 
@@ -101,7 +100,7 @@
 
 double FC_FUNC(realtime,REALTIME) () 
 {
-  gettimeofday( &tp,&tzp );
+  gettimeofday(&tp, NULL);
   return (double) tp.tv_sec + tp.tv_usec*1.0e-6;
 }