Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2013-05-24 14:30:32 +0400
committerEdward Thomson <ethomson@edwardthomson.com>2013-05-24 14:32:26 +0400
commit25a899ec8431cf4738ee7eb6ca79f60cc27141de (patch)
tree3ee09b0336e4bad9da7083c9f562264e3239ca60 /src/util.c
parent4bc67efd7408faaab714478604a0543e568b7564 (diff)
qsort_r is broken on HURD, avoid
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 49530f8c8..a6f87a0d7 100644
--- a/src/util.c
+++ b/src/util.c
@@ -685,7 +685,8 @@ 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__) || defined(__OpenBSD__) || defined(AMIGA)
+#if defined(__MINGW32__) || defined(__OpenBSD__) || defined(AMIGA) || \
+ defined(__gnu_hurd__)
git__insertsort_r(els, nel, elsize, NULL, cmp, payload);
#elif defined(GIT_WIN32)
git__qsort_r_glue glue = { cmp, payload };