summaryrefslogtreecommitdiff
path: root/archivers/zoo/patches/patch-ae
blob: 5ad7514d2378801025660be960d2e6520ba2dbac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ae,v 1.2 2004/06/15 04:24:30 minskim Exp $

--- nixtime.i.orig	1991-07-16 10:53:46.000000000 -0500
+++ nixtime.i
@@ -1,3 +1,5 @@
+#include <time.h>
+
 #ifndef LINT
 static char nixtimeid[]="@(#) nixtime.i 2.3 88/01/24 12:49:28";
 #endif /* LINT */
@@ -52,7 +54,8 @@ unsigned int date, time;
 	long mstonix();
 	long gettz();
 	long utimbuf[2];
-	utimbuf[0] = utimbuf[1] = gettz() + mstonix (date, time);
+	long t = mstonix (date, time);
+	utimbuf[0] = utimbuf[1] = t + gettz(t);
 	return (utime (path, utimbuf));
 }