Added #if defined ( SNI ) to a few existing #if tests, for compiling

on SINIX.
This commit is contained in:
mccabe 1998-05-01 07:06:12 +00:00
parent f9d512df9f
commit b3743d8812
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;