From a9cca434611ee2293915110c74dc2c53ed4e58fd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 11 Jun 2024 09:12:06 -0700 Subject: [PATCH] maint: port to birthtime platforms Problem reported by Bruno Haible . * src/system.c (same_file): Fix typo on platforms with birthtime. --- src/system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system.c b/src/system.c index 8d8250e..1dcbd93 100644 --- a/src/system.c +++ b/src/system.c @@ -70,8 +70,8 @@ same_file (struct stat const *s, struct stat const *t) || defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC \ || (defined _WIN32 && ! defined __CYGWIN__)) /* If either file has a birth time, comparing them is definitive. */ - timespec sbirth = get_stat_birthtime (s); - timespec tbirth = get_stat_birthtime (t); + struct timespec sbirth = get_stat_birthtime (s); + struct timespec tbirth = get_stat_birthtime (t); if (0 <= sbirth.tv_nsec || 0 <= tbirth.tv_nsec) return timespec_cmp (sbirth, tbirth) == 0; #endif -- 2.43.0