Re: [xslt] Fail build of OpenBSD
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] Fail build of OpenBSD
- Date: Sat, 18 Aug 2001 08:04:56 -0400
On Sat, Aug 18, 2001 at 11:55:07AM +0000, Bjorn Reese wrote:
> 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 :)
yes <sigh/>
Well, this function is not critical at all (it's a specific function
for Norman Walsh stylesheets), if we have a reliable way to detect
that the 'timezone' variable is not available, simply don't compile and
register this function,
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]