File tree 3 files changed +7
-7
lines changed 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 62
62
# endif
63
63
#define GIT_STDLIB_CALL
64
64
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
+
65
71
# include <arpa/inet.h>
66
72
67
73
#endif
Original file line number Diff line number Diff line change 13
13
#include "win32/findfile.h"
14
14
#endif
15
15
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
-
22
16
GIT__USE_STRMAP
23
17
24
18
int 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(
92
92
93
93
/* If the timestamp is the same or newer than the index, it's racy */
94
94
#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 )
96
96
return true;
97
97
else if ((int32_t )index -> stamp .mtime .tv_sec > entry -> mtime .seconds )
98
98
return false;
You can’t perform that action at this time.
0 commit comments