| 577 | * carries whole seconds, so the value is seconds scaled to ns there. */ |
| 578 | #define DISCOVER_NS_PER_SEC 1000000000LL |
| 579 | static int64_t discover_stat_mtime_ns(const struct stat *st) { |
| 580 | #ifdef __APPLE__ |
| 581 | return ((int64_t)st->st_mtimespec.tv_sec * DISCOVER_NS_PER_SEC) + |
| 582 | (int64_t)st->st_mtimespec.tv_nsec; |