Skip to content

Commit

Permalink
Fix HAVE_TM_TM_GMT_OFF usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nicowilliams committed May 21, 2017
1 parent b0d6d28 commit 578d536
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 578d536

Please # to comment.