openbsd-ports/x11/gnome/utils/patches/patch-logview_logrtns_c
marcm 33c3571556 Gnome 2.4.1.
Sync versions with the Gnome 2.4.1 release.  Mostly bugfixes, too numerous
to list :).

This also addresses systrace issues and some config file issues from
sturm@, and wireless applet support from djm@.
2003-12-01 04:13:05 +00:00

31 lines
1.3 KiB
Plaintext

$OpenBSD: patch-logview_logrtns_c,v 1.2 2003/12/01 04:13:07 marcm Exp $
--- logview/logrtns.c.orig 2003-05-30 23:38:32.000000000 -0700
+++ logview/logrtns.c 2003-11-29 23:02:02.000000000 -0800
@@ -789,7 +789,7 @@ ReadLogStats (Log * log)
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;
@@ -815,7 +815,7 @@ ReadLogStats (Log * log)
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;
@@ -826,7 +826,7 @@ ReadLogStats (Log * log)
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;