summaryrefslogtreecommitdiff
path: root/src/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-10-01 17:17:26 -0400
committerPaul Smith <psmith@gnu.org>2022-10-02 08:55:29 -0400
commit3cb84fe9335228f10257ac049b838a166fb531c4 (patch)
treee89fceece4198d5e30c6976141565ca161f539f2 /src/remake.c
parentad84ec2fdc331030ab154508d2229e151ed91fc8 (diff)
downloadmake-git-3cb84fe9335228f10257ac049b838a166fb531c4.tar.gz
* src/filedef.h (is_ordinary_mtime): Check for "ordinary" mod time.
* src/remake.c (update_file_1): Use the new macro.
Diffstat (limited to 'src/remake.c')
-rw-r--r--src/remake.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/remake.c b/src/remake.c
index 69a0e6cb..a97431b9 100644
--- a/src/remake.c
+++ b/src/remake.c
@@ -491,8 +491,7 @@ update_file_1 (struct file *file, unsigned int depth)
noexist = this_mtime == NONEXISTENT_MTIME;
if (noexist)
DBF (DB_BASIC, _("File '%s' does not exist.\n"));
- else if (ORDINARY_MTIME_MIN <= this_mtime && this_mtime <= ORDINARY_MTIME_MAX
- && file->low_resolution_time)
+ else if (is_ordinary_mtime (this_mtime) && file->low_resolution_time)
{
/* Avoid spurious rebuilds due to low resolution time stamps. */
int ns = FILE_TIMESTAMP_NS (this_mtime);