Commit 32309b5d82d95402852cfcd478abec5d116eba86

Vicent Marti 2014-01-08T04:09:09

Merge pull request #2034 from jacquesg/solaris-qsort Solaris doesn't have qsort_r either

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/util.c b/src/util.c
index 47516a8..81a64c7 100644
--- a/src/util.c
+++ b/src/util.c
@@ -729,6 +729,7 @@ void git__qsort_r(
 #if defined(__MINGW32__) || defined(AMIGA) || \
 	defined(__OpenBSD__) || defined(__NetBSD__) || \
 	defined(__gnu_hurd__) || defined(__ANDROID_API__) || \
+	defined(__sun) || \
 	(__GLIBC__ == 2 && __GLIBC_MINOR__ < 8)
 	git__insertsort_r(els, nel, elsize, NULL, cmp, payload);
 #elif defined(GIT_WIN32)