mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-10 19:45:15 +00:00
merge::workdir::dirty: update to use st_ctime_nsec
Update unit test to use newfangled `st_ctime_nsec`, which provides indirection to the platform-correct name.
This commit is contained in:
parent
2d8807126b
commit
6abdf52d6e
@ -165,8 +165,8 @@ static void hack_index(char *files[])
|
||||
entry->ctime.seconds = (int32_t)statbuf.st_ctime;
|
||||
entry->mtime.seconds = (int32_t)statbuf.st_mtime;
|
||||
#if defined(GIT_USE_NSEC)
|
||||
entry->ctime.nanoseconds = statbuf.st_ctim.tv_nsec;
|
||||
entry->mtime.nanoseconds = statbuf.st_mtim.tv_nsec;
|
||||
entry->ctime.nanoseconds = statbuf.st_ctime_nsec;
|
||||
entry->mtime.nanoseconds = statbuf.st_mtime_nsec;
|
||||
#else
|
||||
entry->ctime.nanoseconds = 0;
|
||||
entry->mtime.nanoseconds = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user