summaryrefslogtreecommitdiff
path: root/tests/merge/workdir/dirty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/merge/workdir/dirty.c')
-rw-r--r--tests/merge/workdir/dirty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/merge/workdir/dirty.c b/tests/merge/workdir/dirty.c
index ed402bd14..f168963b2 100644
--- a/tests/merge/workdir/dirty.c
+++ b/tests/merge/workdir/dirty.c
@@ -164,8 +164,7 @@ static void hack_index(char *files[])
entry->ctime.seconds = (git_time_t)statbuf.st_ctime;
entry->mtime.seconds = (git_time_t)statbuf.st_mtime;
-#if !defined(GIT_WIN32) && !defined(__APPLE__)
- /* Apple and Windows doesn't provide these struct stat fields. */
+#if defined(GIT_USE_NSEC)
entry->ctime.nanoseconds = statbuf.st_ctim.tv_nsec;
entry->mtime.nanoseconds = statbuf.st_mtim.tv_nsec;
#else