diff options
-rw-r--r-- | src/iterator.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/iterator.c b/src/iterator.c index 132b2c77c..36c68a152 100644 --- a/src/iterator.c +++ b/src/iterator.c @@ -1458,10 +1458,12 @@ static void filesystem_iterator_set_current( filesystem_iterator_entry *entry) { iter->entry.ctime.seconds = entry->st.st_ctime; - iter->entry.ctime.nanoseconds = entry->st.st_ctime_nsec; - iter->entry.mtime.seconds = entry->st.st_mtime; + +#if defined(GIT_USE_NSEC) + iter->entry.ctime.nanoseconds = entry->st.st_ctime_nsec; iter->entry.mtime.nanoseconds = entry->st.st_mtime_nsec; +#endif iter->entry.dev = entry->st.st_dev; iter->entry.ino = entry->st.st_ino; |