1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Fix HAVE_TM_TM_GMT_OFF usage

This commit is contained in:
Nicolas Williams
2017-05-21 01:53:00 -05:00
parent b0d6d28310
commit 578d536233

View File

@ -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