diff options
author | Sebastian Bauer <mail@sebastianbauer.info> | 2013-05-07 09:15:12 +0200 |
---|---|---|
committer | Sebastian Bauer <mail@sebastianbauer.info> | 2013-05-07 09:15:12 +0200 |
commit | 7f8cf6fefdd380f992f1100440f0eb030f6b6633 (patch) | |
tree | 172f06f0579914d983ce49d36a7ec7f67502e58a /src/util.c | |
parent | 590991a7e05a7ba59a6f365375e2ed6f8a6f819a (diff) | |
download | libgit2-7f8cf6fefdd380f992f1100440f0eb030f6b6633.tar.gz |
Fixed qsort_r() problem when targeting AmigaOS.
We fall back to the libgit2-provided insert sort as done for other
platforms.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c index 8c8bc1a6c..49530f8c8 100644 --- a/src/util.c +++ b/src/util.c @@ -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 }; |