]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add Comment
authorW. Felix Handte <w@felixhandte.com>
Wed, 4 Dec 2019 21:59:16 +0000 (16:59 -0500)
committerW. Felix Handte <w@felixhandte.com>
Mon, 23 Dec 2019 18:24:28 +0000 (13:24 -0500)
programs/util.c

index 0751bf3ca2e2f1383bfb7db19e83f65554e67e26..51d848018a6837afc4ed351f993757ee05f2b952 100644 (file)
@@ -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) */