aboutsummaryrefslogtreecommitdiff
path: root/textproc/libxslt/files/patch-libxslt::extra.c
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-08-27 10:33:03 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-08-27 10:33:03 +0000
commited4f116ca0c98f938cf7fdf18c033416d32620b5 (patch)
tree1ed8b5ee8e42e02f2c1aebc9b219fa0ea747ea32 /textproc/libxslt/files/patch-libxslt::extra.c
parent0c93669feb9c14e9084b6d03d38df977f7aa7bd4 (diff)
Notes
Diffstat (limited to 'textproc/libxslt/files/patch-libxslt::extra.c')
-rw-r--r--textproc/libxslt/files/patch-libxslt::extra.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/textproc/libxslt/files/patch-libxslt::extra.c b/textproc/libxslt/files/patch-libxslt::extra.c
new file mode 100644
index 000000000000..b4039d8b49e8
--- /dev/null
+++ b/textproc/libxslt/files/patch-libxslt::extra.c
@@ -0,0 +1,19 @@
+
+$FreeBSD$
+
+--- libxslt/extra.c.orig Wed Aug 15 05:55:12 2001
++++ libxslt/extra.c Mon Aug 27 13:24:28 2001
+@@ -235,7 +235,12 @@
+ * Calling localtime() has the side-effect of setting timezone.
+ * After we know the timezone, we can adjust for it
+ */
+- lmt = gmt - timezone;
++ /*
++ * May be on some stupid Linux localtime() have such side-effect,
++ * but FreeBSD DOESN'T HAVE such side-ffect, so we should use
++ * local_tm.
++ */
++ lmt = gmt - local_tm->tm_gmtoff;
+
+ /*
+ * FIXME: it's been too long since I did manual memory management.