From feebccb9dcc96e0b333f76a86aa7098881403d1a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 12 Sep 2023 20:19:03 +0000 Subject: New tentative workaround for bad sys/stat.h Signed-off-by: Laurent Bercot --- src/libs6dns/s6dns_hosts_init.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libs6dns') diff --git a/src/libs6dns/s6dns_hosts_init.c b/src/libs6dns/s6dns_hosts_init.c index 093b5b8..19a4918 100644 --- a/src/libs6dns/s6dns_hosts_init.c +++ b/src/libs6dns/s6dns_hosts_init.c @@ -1,13 +1,15 @@ /* ISC license. */ +#include + #include #include #include #include -#include #include #include +#include #include #include #include @@ -29,7 +31,7 @@ int s6dns_hosts_init (cdb *c, char const *txtfile, char const *cdbfile, char con if (errno == ENOENT) goto useit ; else goto errc ; } - if (timespec_cmp(&stc.ST_MTIM, &str.ST_MTIM) > 0) goto useit ; + if (timespec_cmp(&stc.st_mtim, &str.st_mtim) > 0) goto useit ; fd_close(fdc) ; } -- cgit v1.2.3