diff --git a/src/context.c b/src/context.c index cb52e59e..1a7d86b9 100644 --- a/src/context.c +++ b/src/context.c @@ -194,9 +194,9 @@ filechg_check(struct getdns_context *context, struct filechg *fchg) fchg->changes = GETDNS_FCHG_MTIME | GETDNS_FCHG_CTIME; else { - if(fchg->prevstat->st_mtimespec.tv_sec != finfo->st_mtimespec.tv_sec) + if(fchg->prevstat->st_mtime != finfo->st_mtime) fchg->changes |= GETDNS_FCHG_MTIME; - if(fchg->prevstat->st_ctimespec.tv_sec != finfo->st_ctimespec.tv_sec) + if(fchg->prevstat->st_ctime != finfo->st_ctime) fchg->changes |= GETDNS_FCHG_CTIME; GETDNS_FREE(context->my_mf, fchg->prevstat); } diff --git a/src/general.h b/src/general.h index 0f74db99..6a2f7cef 100644 --- a/src/general.h +++ b/src/general.h @@ -37,6 +37,7 @@ #define _GETDNS_GENERAL_H_ #include +#include "types-internal.h" /* private inner helper used by sync and async */ diff --git a/src/service.c b/src/service.c index 5921d1cb..5d40bdb4 100644 --- a/src/service.c +++ b/src/service.c @@ -35,6 +35,8 @@ */ #include +#include "general.h" +#include "util-internal.h" /* * getdns_service