]> git.proxmox.com Git - libgit2.git/commitdiff
Fixed qsort_r() problem when targeting AmigaOS.
authorSebastian Bauer <mail@sebastianbauer.info>
Tue, 7 May 2013 07:15:12 +0000 (09:15 +0200)
committerSebastian Bauer <mail@sebastianbauer.info>
Tue, 7 May 2013 07:15:12 +0000 (09:15 +0200)
We fall back to the libgit2-provided insert sort as done for other
platforms.

src/util.c

index 8c8bc1a6ceb1398b0ff3ba11bcae62a296366c5a..49530f8c83646cedcb80d0e0118779af7a17254a 100644 (file)
@@ -685,7 +685,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__) || defined(__OpenBSD__)
+#if defined(__MINGW32__) || defined(__OpenBSD__) || defined(AMIGA)
        git__insertsort_r(els, nel, elsize, NULL, cmp, payload);
 #elif defined(GIT_WIN32)
        git__qsort_r_glue glue = { cmp, payload };