mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-10 03:56:58 +00:00
commit
c1b75f05ad
@ -62,6 +62,12 @@
|
|||||||
# endif
|
# endif
|
||||||
#define GIT_STDLIB_CALL
|
#define GIT_STDLIB_CALL
|
||||||
|
|
||||||
|
#ifdef GIT_USE_STAT_ATIMESPEC
|
||||||
|
# define st_atim st_atimespec
|
||||||
|
# define st_ctim st_ctimespec
|
||||||
|
# define st_mtim st_mtimespec
|
||||||
|
#endif
|
||||||
|
|
||||||
# include <arpa/inet.h>
|
# include <arpa/inet.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -13,12 +13,6 @@
|
|||||||
#include "win32/findfile.h"
|
#include "win32/findfile.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GIT_USE_STAT_ATIMESPEC
|
|
||||||
#define st_atim st_atimespec
|
|
||||||
#define st_ctim st_ctimespec
|
|
||||||
#define st_mtim st_mtimespec
|
|
||||||
#endif
|
|
||||||
|
|
||||||
GIT__USE_STRMAP
|
GIT__USE_STRMAP
|
||||||
|
|
||||||
int git_futils_mkpath2file(const char *file_path, const mode_t mode)
|
int git_futils_mkpath2file(const char *file_path, const mode_t mode)
|
||||||
|
@ -92,7 +92,7 @@ GIT_INLINE(bool) git_index_entry_newer_than_index(
|
|||||||
|
|
||||||
/* If the timestamp is the same or newer than the index, it's racy */
|
/* If the timestamp is the same or newer than the index, it's racy */
|
||||||
#if defined(GIT_USE_NSEC)
|
#if defined(GIT_USE_NSEC)
|
||||||
if ((int32_t)index->stamp.tv_sec < entry->mtime.seconds)
|
if ((int32_t)index->stamp.mtime.tv_sec < entry->mtime.seconds)
|
||||||
return true;
|
return true;
|
||||||
else if ((int32_t)index->stamp.mtime.tv_sec > entry->mtime.seconds)
|
else if ((int32_t)index->stamp.mtime.tv_sec > entry->mtime.seconds)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user