From 5666835ea7e0bb3a3b7931d71484d6f7980c0404 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Wed, 4 Dec 2019 16:59:16 -0500 Subject: [PATCH] Add Comment --- programs/util.c | 4 ++++ 1 file changed, 4 insertions(+) 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) */