diff --git a/mozilla/js/ref/prtime.c b/mozilla/js/ref/prtime.c index cf6f92f8844..44f06355442 100644 --- a/mozilla/js/ref/prtime.c +++ b/mozilla/js/ref/prtime.c @@ -361,7 +361,7 @@ PR_DSTOffset(int64 time) int64 maxtimet; struct tm tm; PRTime prtm; -#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) +#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) struct tm *ptm; #endif @@ -379,7 +379,7 @@ PR_DSTOffset(int64 time) } LL_L2UI(local,time); PR_basetime(time,&prtm); -#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) +#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) ptm = localtime(&local); if (!ptm) return LL_ZERO; diff --git a/mozilla/js/src/prmjtime.c b/mozilla/js/src/prmjtime.c index 27790f3c5de..3f8a57482e1 100644 --- a/mozilla/js/src/prmjtime.c +++ b/mozilla/js/src/prmjtime.c @@ -284,7 +284,7 @@ PRMJ_DSTOffset(PRInt64 time) PRInt64 maxtimet; struct tm tm; PRMJTime prtm; -#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) +#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) struct tm *ptm; #endif @@ -303,7 +303,7 @@ PRMJ_DSTOffset(PRInt64 time) } LL_L2UI(local,time); PRMJ_basetime(time,&prtm); -#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) +#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) ptm = localtime(&local); if(!ptm){ return LL_ZERO;