summaryrefslogtreecommitdiff
path: root/time/unix/timestr.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/unix/timestr.c')
-rw-r--r--time/unix/timestr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/time/unix/timestr.c b/time/unix/timestr.c
index d9ab7bd03..c41d876b1 100644
--- a/time/unix/timestr.c
+++ b/time/unix/timestr.c
@@ -181,7 +181,11 @@ apr_status_t apr_strftime(char *s, apr_size_t *retsize, apr_size_t max,
tm.tm_wday = xt->tm_wday;
tm.tm_yday = xt->tm_yday;
tm.tm_isdst = xt->tm_isdst;
+#if defined(HAVE_GMTOFF)
tm.tm_gmtoff = xt->tm_gmtoff;
+#elif defined(HAVE___OFFSET)
+ tm.__tm_gmtoff = xt->tm_gmtoff;
+#endif
(*retsize) = strftime(s, max, format, &tm);
return APR_SUCCESS;
}