summaryrefslogtreecommitdiff
path: root/www/firefox36/files/patch-nsprpub-pr-src-misc-prtime.c
diff options
context:
space:
mode:
authorAlan Eldridge <alane@FreeBSD.org>2002-12-18 05:02:34 +0000
committerAlan Eldridge <alane@FreeBSD.org>2002-12-18 05:02:34 +0000
commit05c21b9963d5e0d621ee761deba331a15800aeb1 (patch)
treebc6a2f18a8b135459af6e09f2b6a7ef3788c2bee /www/firefox36/files/patch-nsprpub-pr-src-misc-prtime.c
parent- Fix some of the build problems on CURRENT, not all. (diff)
Patch by Greg Rumple & JMC to hopefully fix end-of-download crash. I'll
submit this fix back to the Mozilla team, since it will affect Mozilla 1.3a as well. Approved by: kris before departure (one of these days this update will end)
Notes
Notes: svn path=/head/; revision=71696
Diffstat (limited to 'www/firefox36/files/patch-nsprpub-pr-src-misc-prtime.c')
-rw-r--r--www/firefox36/files/patch-nsprpub-pr-src-misc-prtime.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/firefox36/files/patch-nsprpub-pr-src-misc-prtime.c b/www/firefox36/files/patch-nsprpub-pr-src-misc-prtime.c
new file mode 100644
index 000000000000..6b65ef14fbec
--- /dev/null
+++ b/www/firefox36/files/patch-nsprpub-pr-src-misc-prtime.c
@@ -0,0 +1,18 @@
+--- nsprpub/pr/src/misc/prtime.c.orig Sun Mar 31 12:17:46 2002
++++ nsprpub/pr/src/misc/prtime.c Tue Dec 17 21:30:30 2002
+@@ -1666,12 +1666,13 @@
+ * values for these two fields.
+ */
+
+-#if defined(SUNOS4) || (__GLIBC__ >= 2) || defined(XP_BEOS)
++#if defined(__FreeBSD__)|| defined(SUNOS4) \
++ || (__GLIBC__ >= 2) || defined(XP_BEOS)
+ if (mktime(&a) == -1) {
+ PR_snprintf(buf, buflen, "can't get timezone");
+ return 0;
+ }
+-#endif
++#endif /* check for __FreeBSD__, too <alane@freebsd.org> */
+
+ return strftime(buf, buflen, fmt, &a);
+ }