Branch: Tag:

2018-04-03

2018-04-03 17:45:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Builtin: Fixed mktime_zone() when localtime is in dst.

Adds variant using timezone/altzone (eg Solaris).

Fixes the fallback implementation (using gmtime(3F)) to not
drift by an hour when the local time zone has tm_isdst == 1.

4372:      AC_MSG_RESULT($pike_cv_has_external_timezone)    + AC_MSG_CHECKING(extern int altzone) +  + AC_CACHE_VAL(pike_cv_has_external_altzone,[ + AC_TRY_LINK([ + #include <time.h> + ],[ +  int _tz; +  _tz=altzone; +  altzone=_tz; + ],pike_cv_has_external_altzone=yes,pike_cv_has_external_altzone=no) + ]) +  + if test "$pike_cv_has_external_altzone" = "yes"; then +  AC_DEFINE(HAVE_EXTERNAL_ALTZONE) + fi +  + AC_MSG_RESULT($pike_cv_has_external_altzone) +    #############################################################################      # No test for this yet...