| diff -aruN nspr-4.8.6/mozilla/nsprpub/pr/include/prtime.h nspr-4.8.6.N/mozilla/nsprpub/pr/include/prtime.h |
| --- nspr-4.8.6/mozilla/nsprpub/pr/include/prtime.h 2016-01-21 12:46:01.000000000 -0800 |
| +++ nspr-4.8.6.N/mozilla/nsprpub/pr/include/prtime.h 2016-01-21 12:44:49.000000000 -0800 |
| @@ -50,6 +50,9 @@ |
| |
| #include "prlong.h" |
| |
| +#define HAVE_POINTER_LOCALTIME_R 1 |
| +#define HAVE_LOCALTIME_R 1 |
| + |
| PR_BEGIN_EXTERN_C |
| |
| /**********************************************************************/ |
| diff -aruN nspr-4.8.6/mozilla/nsprpub/pr/src/misc/prtime.c nspr-4.8.6.N/mozilla/nsprpub/pr/src/misc/prtime.c |
| --- nspr-4.8.6/mozilla/nsprpub/pr/src/misc/prtime.c 2016-01-21 12:46:01.000000000 -0800 |
| +++ nspr-4.8.6.N/mozilla/nsprpub/pr/src/misc/prtime.c 2016-01-21 12:45:04.000000000 -0800 |
| @@ -823,6 +823,9 @@ |
| * since Jan. 2, 1970. |
| */ |
| |
| + /* Run tzset() to guarantee that we are using up-to-date time parameters. */ |
| + tzset(); |
| + |
| secs = 86400L; |
| (void) MT_safe_localtime(&secs, &localTime); |
| |