зеркало из https://github.com/mozilla/pjs.git
Added Rhapsody to the long list of OS's that can't handle localtime_r().
This commit is contained in:
Родитель
aa655ba85a
Коммит
ba1cf16b8f
|
@ -279,7 +279,7 @@ PRMJ_DSTOffset(PRInt64 time)
|
|||
PRInt64 maxtimet;
|
||||
struct tm tm;
|
||||
PRMJTime prtm;
|
||||
#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD )
|
||||
#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD ) || defined( RHAPSODY )
|
||||
struct tm *ptm;
|
||||
#endif
|
||||
|
||||
|
@ -298,7 +298,7 @@ PRMJ_DSTOffset(PRInt64 time)
|
|||
}
|
||||
LL_L2UI(local,time);
|
||||
PRMJ_basetime(time,&prtm);
|
||||
#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD )
|
||||
#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD ) || defined( RHAPSODY )
|
||||
ptm = localtime(&local);
|
||||
if(!ptm){
|
||||
return LL_ZERO;
|
||||
|
|
Загрузка…
Ссылка в новой задаче