зеркало из https://github.com/mozilla/pjs.git
Fix to 24800. Change FREEBSD to __FreeBSD__, allowing the standalone JS engine to build and link on FreeBSD without the client build system (which defines FREEBSD).
Thanks go to braden@endoframe.com for the patch, and to sidr@albedo.net and fur@geocast.com for bug discussion.
This commit is contained in:
Родитель
d5e806f28c
Коммит
7539c81efb
|
@ -378,7 +378,7 @@ PRMJ_DSTOffset(JSInt64 local_time)
|
||||||
JSInt64 maxtimet;
|
JSInt64 maxtimet;
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
PRMJTime prtm;
|
PRMJTime prtm;
|
||||||
#if ( defined( USE_AUTOCONF ) && !defined( HAVE_LOCALTIME_R) ) || ( !defined ( USE_AUTOCONF ) && ( defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD ) || defined( RHAPSODY ) ) )
|
#if ( defined( USE_AUTOCONF ) && !defined( HAVE_LOCALTIME_R) ) || ( !defined ( USE_AUTOCONF ) && ( defined( XP_PC ) || defined( __FreeBSD__ ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD ) || defined( RHAPSODY ) ) )
|
||||||
struct tm *ptm;
|
struct tm *ptm;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ PRMJ_DSTOffset(JSInt64 local_time)
|
||||||
}
|
}
|
||||||
JSLL_L2UI(local,local_time);
|
JSLL_L2UI(local,local_time);
|
||||||
PRMJ_basetime(local_time,&prtm);
|
PRMJ_basetime(local_time,&prtm);
|
||||||
#if ( defined( USE_AUTOCONF ) && !defined( HAVE_LOCALTIME_R) ) || ( !defined ( USE_AUTOCONF ) && ( defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD ) || defined( RHAPSODY ) ) )
|
#if ( defined( USE_AUTOCONF ) && !defined( HAVE_LOCALTIME_R) ) || ( !defined ( USE_AUTOCONF ) && ( 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 JSLL_ZERO;
|
return JSLL_ZERO;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче