diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-10-23 06:23:12 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2025-10-23 06:23:12 +0000 |
| commit | 2e5084aea93b1de5e5c1e9140511f592e3f7611d (patch) | |
| tree | f40ff4d1b4d2f2928ab2f1674193f91c060b10e7 | |
| parent | 2e626caf93a9594c924e19f9c2eb47f8011657d1 (diff) | |
| download | s6-rc-2e5084aea93b1de5e5c1e9140511f592e3f7611d.tar.gz | |
nonposix.h PLUS bsdsnowflake.h are necessary for st.mtim
| -rw-r--r-- | src/repo/s6rc_repo_setuptodate.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <skalibs/bsdsnowflake.h> +#include <skalibs/nonposix.h> #include <string.h> #include <errno.h> @@ -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 ; } - |
