diff options
author | Nicolas Williams <nico@cryptonector.com> | 2017-05-21 01:53:00 -0500 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2017-05-21 01:53:00 -0500 |
commit | 578d536233b62884764b3c5c6cd42077958d6a49 (patch) | |
tree | e4f30797b913b2ff346429919edffb3b5b2d8a5c | |
parent | b0d6d283102a171c74db142b5b00bb6115287c7a (diff) |
Fix HAVE_TM_TM_GMT_OFF usage
-rw-r--r-- | src/builtin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/builtin.c b/src/builtin.c index cfdd4fef..e785944c 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -1201,9 +1201,9 @@ static time_t my_mktime(struct tm *tm) { if (t == (time_t)-1) return t; #ifdef HAVE_TM_TM_GMT_OFF - return t + tm.tm_gmtoff; -#elif defined(HAVE_TM_TM_GMT_OFF) - return t + tm.__tm_gmtoff; + return t + tm->tm_gmtoff; +#elif HAVE_TM___TM_GMT_OFF + return t + tm->__tm_gmtoff; #else return (time_t)-2; /* Not supported */ #endif |