From 2e5084aea93b1de5e5c1e9140511f592e3f7611d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 23 Oct 2025 06:23:12 +0000 Subject: nonposix.h PLUS bsdsnowflake.h are necessary for st.mtim --- src/repo/s6rc_repo_setuptodate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/repo/s6rc_repo_setuptodate.c b/src/repo/s6rc_repo_setuptodate.c index 3dded26..83e208e 100644 --- a/src/repo/s6rc_repo_setuptodate.c +++ b/src/repo/s6rc_repo_setuptodate.c @@ -1,6 +1,7 @@ /* ISC license. */ #include +#include #include #include @@ -37,8 +38,7 @@ int s6rc_repo_setuptodate (char const *repo, char const *set) return -1 ; } return - stsource.st_atim.tv_sec < stcompiled.st_atim.tv_sec ? 1 : - stsource.st_atim.tv_sec > stcompiled.st_atim.tv_sec ? 0 : - stsource.st_atim.tv_nsec < stcompiled.st_atim.tv_nsec ; + stsource.st_mtim.tv_sec < stcompiled.st_mtim.tv_sec ? 1 : + stsource.st_mtim.tv_sec > stcompiled.st_mtim.tv_sec ? 0 : + stsource.st_mtim.tv_nsec < stcompiled.st_mtim.tv_nsec ; } - -- cgit v1.3.1