зеркало из 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;
|
PRInt64 maxtimet;
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
PRMJTime prtm;
|
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;
|
struct tm *ptm;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -298,7 +298,7 @@ PRMJ_DSTOffset(PRInt64 time)
|
||||||
}
|
}
|
||||||
LL_L2UI(local,time);
|
LL_L2UI(local,time);
|
||||||
PRMJ_basetime(time,&prtm);
|
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);
|
ptm = localtime(&local);
|
||||||
if(!ptm){
|
if(!ptm){
|
||||||
return LL_ZERO;
|
return LL_ZERO;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче