diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2013-05-24 10:30:32 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2013-05-24 10:32:26 +0000 |
commit | 25a899ec8431cf4738ee7eb6ca79f60cc27141de (patch) | |
tree | 3ee09b0336e4bad9da7083c9f562264e3239ca60 | |
parent | 4bc67efd7408faaab714478604a0543e568b7564 (diff) | |
download | libgit2-25a899ec8431cf4738ee7eb6ca79f60cc27141de.tar.gz |
qsort_r is broken on HURD, avoid
-rw-r--r-- | src/util.c | 3 |
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 }; |