Commit b1447edebc15de58f46e5863e59acb7b4988f304

Krzysztof Adamski 2013-09-01T18:47:56

Use git__insertsort_r on Android too.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/util.c b/src/util.c
index ad76038..d0c326a 100644
--- a/src/util.c
+++ b/src/util.c
@@ -711,7 +711,7 @@ 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) || \
-	defined(__gnu_hurd__) || \
+	defined(__gnu_hurd__) || defined(__ANDROID_API__) || \
 	(__GLIBC__ == 2 && __GLIBC_MINOR__ < 8)
 	git__insertsort_r(els, nel, elsize, NULL, cmp, payload);
 #elif defined(GIT_WIN32)