aboutsummaryrefslogtreecommitdiffstats
path: root/lang/p2c/files/patch-trans.c
blob: 797361ba68bffbc44c075ce8d398c287efd2006b (plain) (blame)
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
29
--- trans.c.orig    2015-10-02 17:52:53 UTC
+++ trans.c
@@ -23,6 +23,8 @@ the Free Software Foundation, Inc., 675 
 #include "trans.h"
 
 #include <time.h>
+#include <sys/types.h>
+#include <unistd.h>
 
 
 
@@ -575,7 +577,7 @@ extern char *getenv PP((char *));
 # endif
 #endif
 
-Static long starting_time;
+Static time_t starting_time;
 
 Static void openlogfile()
 {
@@ -608,7 +610,7 @@ Static void openlogfile()
 
 void closelogfile()
 {
-    long ending_time;
+    time_t ending_time;
 
     if (logfile) {
    fprintf(logfile, "\n\n");