Skip to content

Commit 872ca1d

Browse files
committed
Fix compilation on OpenBSD
1 parent 2d2260d commit 872ca1d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/unix/realpath.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ char *p_realpath(const char *pathname, char *resolved)
2222

2323
/* Figure out if the file exists */
2424
if (!access(ret, F_OK))
25-
ret;
25+
return ret;
2626

2727
return NULL;
2828
}

‎src/util.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ static int GIT_STDLIB_CALL git__qsort_r_glue_cmp(
672672
void git__qsort_r(
673673
void *els, size_t nel, size_t elsize, git__sort_r_cmp cmp, void *payload)
674674
{
675-
#if defined(__MINGW32__)
675+
#if defined(__MINGW32__) || defined(__OpenBSD__)
676676
git__insertsort_r(els, nel, elsize, NULL, cmp, payload);
677677
#elif defined(GIT_WIN32)
678678
git__qsort_r_glue glue = { cmp, payload };

0 commit comments

Comments
 (0)