File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 6262# endif
6363#define GIT_STDLIB_CALL
6464
65+ #ifdef GIT_USE_STAT_ATIMESPEC
66+ # define st_atim st_atimespec
67+ # define st_ctim st_ctimespec
68+ # define st_mtim st_mtimespec
69+ #endif
70+
6571# include <arpa/inet.h>
6672
6773#endif
Original file line number Diff line number Diff line change 1313#include "win32/findfile.h"
1414#endif
1515
16- #ifdef GIT_USE_STAT_ATIMESPEC
17- #define st_atim st_atimespec
18- #define st_ctim st_ctimespec
19- #define st_mtim st_mtimespec
20- #endif
21-
2216GIT__USE_STRMAP
2317
2418int git_futils_mkpath2file (const char * file_path , const mode_t mode )
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ GIT_INLINE(bool) git_index_entry_newer_than_index(
9292
9393 /* If the timestamp is the same or newer than the index, it's racy */
9494#if defined(GIT_USE_NSEC )
95- if ((int32_t )index -> stamp .tv_sec < entry -> mtime .seconds )
95+ if ((int32_t )index -> stamp .mtime . tv_sec < entry -> mtime .seconds )
9696 return true;
9797 else if ((int32_t )index -> stamp .mtime .tv_sec > entry -> mtime .seconds )
9898 return false;
You can’t perform that action at this time.
0 commit comments