Commit 739040e6676a1f98043776a4735b293a502d8924

Vicent Marti 2014-04-30T05:34:33

Merge pull request #2315 from jacquesg/qsort-cygwin cygwin also doesn't have qsort_r

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