Re: [xslt] Fail build of OpenBSD



Daniel Veillard wrote:

>   They are both defined as
>      time_t gmt, lmt;
> 
> Isn't time_t supposed to be a scalar type ?

Yes, it is defined as an arithmetic type, but I think that the problem
is 'timezone' (which is part of the X/Open standard, but neither ISO C
nor POSIX).

The OpenBSD man page on localtime() does not mention the 'timezone'
variable. Instead it has tm_gmtoff in struct tm, which is described as
"the offset (in seconds) of the time represented from UTC, with positive
values indicating east of the Prime Meridian."

Ah, the joys of portability :)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]