mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-10 13:25:14 +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__)
|
#elif defined(__MINGW32__)
|
||||||
|
|
||||||
typedef off64_t git_off_t;
|
typedef off64_t git_off_t;
|
||||||
typedef time64_t git_time_t;
|
typedef __time64_t git_time_t;
|
||||||
|
|
||||||
#else /* POSIX */
|
#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);
|
git__joinpath(path_out, tmp_dir, filename);
|
||||||
strcat(path_out, "_git2_XXXXXX");
|
strcat(path_out, "_git2_XXXXXX");
|
||||||
|
|
||||||
#ifdef GIT_WIN32
|
#if defined(_MSC_VER)
|
||||||
/* FIXME: there may be race conditions when multi-threading
|
/* FIXME: there may be race conditions when multi-threading
|
||||||
* with the library */
|
* with the library */
|
||||||
if (_mktemp_s(path_out, GIT_PATH_MAX) != 0)
|
if (_mktemp_s(path_out, GIT_PATH_MAX) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user