Unverified Commit 752006dd by Tomás Pollak Committed by GitHub

Honor 'GIT_USE_NSEC' option in `filesystem_iterator_set_current`

This should have been part of PR #3638. Without this we still get 
nsec-related errors, even when using -DGIT_USE_NSEC:

 error: ‘struct stat’ has no member named ‘st_mtime_nsec’
parent 895fd51a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment