Re: [xslt] Fail build of OpenBSD
- From: "Hin-lik Hung, Shell" <shell shellhung org>
- To: xslt gnome org
- Subject: Re: [xslt] Fail build of OpenBSD
- Date: Sat, 18 Aug 2001 21:07:22 +0800
(Sat, Aug 18, 2001 at 08:04:56AM -0400) Daniel Veillard :
> 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,
Actually the problem was solved by adding 'long int timezone', in
OpenBSD, timezone is a function and not value.
--
Best Regards,
Shell Hung <shell@shellhung.org>
http://www.shellhung.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]