mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00
Fixes for NetBSD and OpenBSD.
Thanks Marco S Hyman <marc@snafu.org>.
This commit is contained in:
parent
631ac3f398
commit
f9f7609482
@ -293,7 +293,7 @@ PRMJ_DSTOffset(PRInt64 time)
|
||||
PRInt64 maxtimet;
|
||||
struct tm tm;
|
||||
PRMJTime prtm;
|
||||
#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI )
|
||||
#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD )
|
||||
struct tm *ptm;
|
||||
#endif
|
||||
|
||||
@ -312,7 +312,7 @@ PRMJ_DSTOffset(PRInt64 time)
|
||||
}
|
||||
LL_L2UI(local,time);
|
||||
PRMJ_basetime(time,&prtm);
|
||||
#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI )
|
||||
#if defined( XP_PC ) || defined( FREEBSD ) || defined ( HPUX9 ) || defined ( SNI ) || defined ( NETBSD ) || defined ( OPENBSD )
|
||||
ptm = localtime(&local);
|
||||
if(!ptm){
|
||||
return LL_ZERO;
|
||||
|
Loading…
x
Reference in New Issue
Block a user