Broken build?
Russ Allbery
rra at stanford.edu
Tue Jan 18 23:39:34 UTC 2000
Javier Henderson <javier at KJSL.COM> writes:
> FreeBSD 3.4-current has;
> char *timezone __P((int, int));
> I did a quick fix for my system, but you probably want to have something
> a little more elegant :)
I was afraid of something like that.
On SVr4 systems, timezone is declared:
extern time_t timezone;
and is the offset from UTC, set automatically when localtime() and friends
are called. BSD instead uses the tm_gmtoff member of struct tm, which
isn't present on SVr4 systems. We already have an autoconf test for
tm_gmtoff; it needs to be expanded to test for either it or for a usable
timezone and then the time-related code needs to take the results into
account when finding the time zone.
Standard sort of inter-Unix gratuitous incompatibility.
--
Russ Allbery (rra at stanford.edu) <URL:http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list