diff -uNr nspr-4.6.6/mozilla/nsprpub/configure nspr-4.6.6-patched/mozilla/nsprpub/configure --- nspr-4.6.6/mozilla/nsprpub/configure 2007-01-18 18:44:31.000000000 -0500 +++ nspr-4.6.6-patched/mozilla/nsprpub/configure 2007-05-29 10:50:59.000000000 -0400 @@ -100,6 +100,16 @@ infodir='${prefix}/info' mandir='${prefix}/man' +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= @@ -488,16 +498,6 @@ esac done -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. @@ -3855,7 +3855,7 @@ PR_MD_CSRCS=linux.c MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' DSO_CFLAGS=-fPIC - DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' + DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@).$(MOD_MINOR_VERSION)' _OPTIMIZE_FLAGS=-O2 _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that # combo is not yet good at debugging inlined diff -uNr nspr-4.6.6/mozilla/nsprpub/pr/src/misc/prtime.c nspr-4.6.6-patched/mozilla/nsprpub/pr/src/misc/prtime.c --- nspr-4.6.6/mozilla/nsprpub/pr/src/misc/prtime.c 2007-01-15 19:31:10.000000000 -0500 +++ nspr-4.6.6-patched/mozilla/nsprpub/pr/src/misc/prtime.c 2007-05-29 10:51:10.000000000 -0400 @@ -1553,7 +1553,7 @@ case TT_EET: zone_offset = 2 * 60; break; case TT_JST: zone_offset = 9 * 60; break; default: - PR_ASSERT (0); + return PR_FAILURE; break; } } @@ -1595,11 +1595,12 @@ struct tm localTime; time_t secs; - PR_ASSERT(tm.tm_month > -1 + if (!(tm.tm_month > -1 && tm.tm_mday > 0 && tm.tm_hour > -1 && tm.tm_min > -1 - && tm.tm_sec > -1); + && tm.tm_sec > -1)) + return PR_FAILURE; /* * To obtain time_t from a tm structure representing the local