From 3de024ab52f1652b9d104d18355aaab0d7655d7c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 12 Oct 2020 18:43:31 +0200 Subject: Compatibility update --- src/b_sqb_file.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/b_sqb_file.c b/src/b_sqb_file.c index 0e9f496..b3c726a 100644 --- a/src/b_sqb_file.c +++ b/src/b_sqb_file.c @@ -10,6 +10,8 @@ /* */ /* ************************************************************************** */ +#define _POSIX_C_SOURCE 200112L + #include #include #include @@ -69,10 +71,10 @@ static t_bool b_sqb_file_comp_tests(uint8_t id, struct stat sb2) { if (id == B_ID_SQB_NT - && sb1.st_mtim.tv_sec > sb2.st_mtim.tv_sec) + && sb1.st_mtime > sb2.st_mtime) return (TRUE); else if (id == B_ID_SQB_OT - && sb1.st_mtim.tv_sec < sb2.st_mtim.tv_sec) + && sb1.st_mtime < sb2.st_mtime) return (TRUE); return (FALSE); } -- cgit v1.2.3