@@ -478,7 +478,9 @@ newerf (const char *f1, const char *f2)
return (stat (f1, &b1) == 0 &&
stat (f2, &b2) == 0 &&
- b1.st_mtime > b2.st_mtime);
+ ( b1.st_mtim.tv_sec > b2.st_mtim.tv_sec ||
+ (b1.st_mtim.tv_sec == b2.st_mtim.tv_sec && (b1.st_mtim.tv_nsec > b2.st_mtim.tv_nsec )))
+ );
}
static int
@@ -488,7 +490,9 @@ olderf (const char *f1, const char *f2)
return (stat (f1, &b1) == 0 &&
stat (f2, &b2) == 0 &&
- b1.st_mtime < b2.st_mtime);
+ (b1.st_mtim.tv_sec < b2.st_mtim.tv_sec ||
+ (b1.st_mtim.tv_sec == b2.st_mtim.tv_sec && (b1.st_mtim.tv_nsec < b2.st_mtim.tv_nsec )))
+ );
}
static int