aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2003-02-11 15:14:00 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2003-02-11 15:14:00 +0000
commitbb21fb5270f53e60b056431268b0643419a7bbaf (patch)
tree5aa3b3da7b2e5dbbccab2656b99a57b4801de184 /databases
parent38dbb75757a6afa1fe42f1f2452b4fae8ad82bf8 (diff)
downloadports-bb21fb5270f53e60b056431268b0643419a7bbaf.tar.gz
ports-bb21fb5270f53e60b056431268b0643419a7bbaf.zip
Notes
Diffstat (limited to 'databases')
-rw-r--r--databases/rrdtool/files/patch-al20
-rw-r--r--databases/rrdtool10/files/patch-al20
2 files changed, 40 insertions, 0 deletions
diff --git a/databases/rrdtool/files/patch-al b/databases/rrdtool/files/patch-al
new file mode 100644
index 000000000000..9c459e8988bc
--- /dev/null
+++ b/databases/rrdtool/files/patch-al
@@ -0,0 +1,20 @@
+--- src/parsetime.c.orig Fri Oct 11 14:39:46 2002
++++ src/parsetime.c Mon Feb 10 20:47:18 2003
+@@ -660,6 +660,7 @@
+ {
+ long mday=0, wday, mon, year = ptv->tm.tm_year;
+ int tlen;
++ time_t montime;
+
+ switch (sc_tokid) {
+ case YESTERDAY:
+@@ -713,7 +714,8 @@
+ tlen = strlen(sc_token);
+ mon = atol(sc_token);
+ if (mon > 10*356*24*60*60) {
+- ptv->tm=*localtime(&mon);
++ montime = mon;
++ ptv->tm=*localtime(&montime);
+ token();
+ break;
+ }
diff --git a/databases/rrdtool10/files/patch-al b/databases/rrdtool10/files/patch-al
new file mode 100644
index 000000000000..9c459e8988bc
--- /dev/null
+++ b/databases/rrdtool10/files/patch-al
@@ -0,0 +1,20 @@
+--- src/parsetime.c.orig Fri Oct 11 14:39:46 2002
++++ src/parsetime.c Mon Feb 10 20:47:18 2003
+@@ -660,6 +660,7 @@
+ {
+ long mday=0, wday, mon, year = ptv->tm.tm_year;
+ int tlen;
++ time_t montime;
+
+ switch (sc_tokid) {
+ case YESTERDAY:
+@@ -713,7 +714,8 @@
+ tlen = strlen(sc_token);
+ mon = atol(sc_token);
+ if (mon > 10*356*24*60*60) {
+- ptv->tm=*localtime(&mon);
++ montime = mon;
++ ptv->tm=*localtime(&montime);
+ token();
+ break;
+ }