From: W. Felix Handte Date: Wed, 4 Dec 2019 21:59:16 +0000 (-0500) Subject: Add Comment X-Git-Tag: v1.4.5^2~127^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5666835ea7e0bb3a3b7931d71484d6f7980c0404;p=thirdparty%2Fzstd.git Add Comment --- diff --git a/programs/util.c b/programs/util.c index 0751bf3ca..51d848018 100644 --- a/programs/util.c +++ b/programs/util.c @@ -145,6 +145,10 @@ int UTIL_setFileStat(const char *filename, stat_t *statbuf) return -1; /* set access and modification times */ + /* We check that st_mtime is a macro here in order to give us confidence + * that struct stat has a struct timespec st_mtim member. We need this + * check because there are some platforms that claim to be POSIX 2008 + * compliant but which do not have st_mtim... */ #if (PLATFORM_POSIX_VERSION >= 200809L) && defined(st_mtime) { /* (atime, mtime) */