mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-10 04:35:07 +00:00
Fix compilation in MinGW
This commit is contained in:
parent
a8375f5322
commit
7c80c19e1d
@ -57,7 +57,7 @@ typedef __time64_t git_time_t;
|
||||
#elif defined(__MINGW32__)
|
||||
|
||||
typedef off64_t git_off_t;
|
||||
typedef time64_t git_time_t;
|
||||
typedef __time64_t git_time_t;
|
||||
|
||||
#else /* POSIX */
|
||||
|
||||
|
@ -32,7 +32,7 @@ static int creat_tempfile(char *path_out, const char *tmp_dir, const char *filen
|
||||
git__joinpath(path_out, tmp_dir, filename);
|
||||
strcat(path_out, "_git2_XXXXXX");
|
||||
|
||||
#ifdef GIT_WIN32
|
||||
#if defined(_MSC_VER)
|
||||
/* FIXME: there may be race conditions when multi-threading
|
||||
* with the library */
|
||||
if (_mktemp_s(path_out, GIT_PATH_MAX) != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user