31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
$OpenBSD: patch-logview_logrtns_c,v 1.4 2005/05/26 22:54:07 marcm Exp $
|
|
--- logview/logrtns.c.orig Wed Mar 2 07:23:27 2005
|
|
+++ logview/logrtns.c Thu May 26 10:17:08 2005
|
|
@@ -645,7 +645,7 @@ ReadLogStats (Log *log, gchar **buffer_l
|
|
if (IsLeapYear (curmark->year - lastyear + thisyear))
|
|
curmark->time += 24 * 60 * 60; /* Add one day */
|
|
|
|
-#if defined(__NetBSD__) || defined(__FreeBSD__)
|
|
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
|
curmark->time += correction - tmptm->tm_gmtoff;
|
|
#else
|
|
curmark->time += correction - timezone;
|
|
@@ -669,7 +669,7 @@ ReadLogStats (Log *log, gchar **buffer_l
|
|
if (IsLeapYear (thisyear))
|
|
log->lstats.enddate += 24 * 60 * 60; /* Add one day */
|
|
|
|
-#if defined(__NetBSD__) || defined(__FreeBSD__)
|
|
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
|
log->lstats.enddate += correction - tmptm->tm_gmtoff;
|
|
#else
|
|
log->lstats.enddate += correction - timezone;
|
|
@@ -680,7 +680,7 @@ ReadLogStats (Log *log, gchar **buffer_l
|
|
if (IsLeapYear (thisyear - lastyear))
|
|
log->lstats.startdate += 24 * 60 * 60; /* Add one day */
|
|
|
|
-#if defined(__NetBSD__) || defined(__FreeBSD__)
|
|
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
|
log->lstats.startdate += correction - tmptm->tm_gmtoff;
|
|
#else
|
|
log->lstats.startdate += correction - timezone;
|