diff options
Diffstat (limited to 'www/flock/files/patch-nsprpub-pr-src-misc-prtime.c')
-rw-r--r-- | www/flock/files/patch-nsprpub-pr-src-misc-prtime.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/www/flock/files/patch-nsprpub-pr-src-misc-prtime.c b/www/flock/files/patch-nsprpub-pr-src-misc-prtime.c index 6b65ef14fbec..9682808e4d9e 100644 --- a/www/flock/files/patch-nsprpub-pr-src-misc-prtime.c +++ b/www/flock/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 Thu Feb 27 01:01:02 2003 ++++ nsprpub/pr/src/misc/prtime.c Thu May 22 16:46:49 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 |