diff options
Diffstat (limited to 'libarchive/archive_write_set_format_warc.c')
-rw-r--r-- | libarchive/archive_write_set_format_warc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libarchive/archive_write_set_format_warc.c b/libarchive/archive_write_set_format_warc.c index 6f0a45d8..0ef003e2 100644 --- a/libarchive/archive_write_set_format_warc.c +++ b/libarchive/archive_write_set_format_warc.c @@ -329,14 +329,14 @@ xstrftime(struct archive_string *as, const char *fmt, time_t t) { /** like strftime(3) but for time_t objects */ struct tm *rt; -#if defined(HAVE_GMTIME_R) || defined(HAVE__GMTIME64_S) +#if defined(HAVE_GMTIME_R) || defined(HAVE_GMTIME_S) struct tm timeHere; #endif char strtime[100]; size_t len; -#if defined(HAVE__GMTIME64_S) - rt = _gmtime64_s(&timeHere, &t) ? NULL : &timeHere; +#if defined(HAVE_GMTIME_S) + rt = gmtime_s(&timeHere, &t) ? NULL : &timeHere; #elif defined(HAVE_GMTIME_R) rt = gmtime_r(&t, &timeHere); #else |