summaryrefslogtreecommitdiff
path: root/www/seamonkey/files/patch-nsprpub_pr_src_misc_prtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/seamonkey/files/patch-nsprpub_pr_src_misc_prtime.c')
-rw-r--r--www/seamonkey/files/patch-nsprpub_pr_src_misc_prtime.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/www/seamonkey/files/patch-nsprpub_pr_src_misc_prtime.c b/www/seamonkey/files/patch-nsprpub_pr_src_misc_prtime.c
index 6b65ef14fbec..30f067cfaf56 100644
--- a/www/seamonkey/files/patch-nsprpub_pr_src_misc_prtime.c
+++ b/www/seamonkey/files/patch-nsprpub_pr_src_misc_prtime.c
@@ -1,18 +1,11 @@
---- 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.
+--- nsprpub/pr/src/misc/prtime.c.orig Wed Feb 26 19:01:02 2003
++++ nsprpub/pr/src/misc/prtime.c Sun Apr 6 19:22:10 2003
+@@ -1666,7 +1666,7 @@
*/
--#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);
- }
+ #if defined(SUNOS4) || (__GLIBC__ >= 2) || defined(XP_BEOS) \
+- || defined(NETBSD)
++ || defined(NETBSD) || defined(__FreeBSD__)
+ a.tm_zone = NULL;
+ a.tm_gmtoff = tm->tm_params.tp_gmt_offset + tm->tm_params.tp_dst_offset;
+ #endif