I am unable to access target_stat.st how do I access it
struct stat target_stat, dep_stat;
time_t t1, t2;

if (stat(target, &target_stat) == -1 || stat(dependency, &dep_stat) == -1) {
    return 1;
}
t1 = target_stat.st_mtime;

if (target_stat.st_mtime.tv_sec < dep_stat.st_mtimespec.tv_sec ||
    (target_stat.st_mtimespec.tv_sec == dep_stat.st_mtimespec.tv_sec && target_stat.st_mtimespec.tv_nsec < dep_stat.st_mtimespec.tv_nsec)) {
    return 1;
} else {
    return 0;
}