mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-10 22:59:24 +00:00
Fix compilation on OpenBSD
This commit is contained in:
parent
2d2260da41
commit
872ca1d302
@ -22,7 +22,7 @@ char *p_realpath(const char *pathname, char *resolved)
|
||||
|
||||
/* Figure out if the file exists */
|
||||
if (!access(ret, F_OK))
|
||||
ret;
|
||||
return ret;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
@ -672,7 +672,7 @@ static int GIT_STDLIB_CALL git__qsort_r_glue_cmp(
|
||||
void git__qsort_r(
|
||||
void *els, size_t nel, size_t elsize, git__sort_r_cmp cmp, void *payload)
|
||||
{
|
||||
#if defined(__MINGW32__)
|
||||
#if defined(__MINGW32__) || defined(__OpenBSD__)
|
||||
git__insertsort_r(els, nel, elsize, NULL, cmp, payload);
|
||||
#elif defined(GIT_WIN32)
|
||||
git__qsort_r_glue glue = { cmp, payload };
|
||||
|
Loading…
Reference in New Issue
Block a user