aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libgit2/10-qsort_r.patch
diff options
context:
space:
mode:
authorPierre-Gildas MILLON <pg.millon@gmail.com>2015-09-28 13:10:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-30 14:02:44 +0200
commitc0bf11c41b0989982bf0079d3cf6ba4896add767 (patch)
tree9c3950e1dfa04dd41c022895968862e87a82e767 /testing/libgit2/10-qsort_r.patch
parenta18cf0d3343c487f4a6a262f0038f21d95c35b66 (diff)
downloadaports-c0bf11c41b0989982bf0079d3cf6ba4896add767.tar.bz2
aports-c0bf11c41b0989982bf0079d3cf6ba4896add767.tar.xz
testing/libgit2: new aport
https://libgit2.github.com/ The Library http://libgit2.github.com
Diffstat (limited to 'testing/libgit2/10-qsort_r.patch')
-rw-r--r--testing/libgit2/10-qsort_r.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/libgit2/10-qsort_r.patch b/testing/libgit2/10-qsort_r.patch
new file mode 100644
index 0000000000..056b733f4e
--- /dev/null
+++ b/testing/libgit2/10-qsort_r.patch
@@ -0,0 +1,28 @@
+diff --git a/src/util.c b/src/util.c
+index b3929bc..fe9af6f 100644
+--- a/src/util.c
++++ b/src/util.c
+@@ -628,22 +628,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(AMIGA) || \
+- defined(__OpenBSD__) || defined(__NetBSD__) || \
+- defined(__gnu_hurd__) || defined(__ANDROID_API__) || \
+- defined(__sun) || defined(__CYGWIN__) || \
+- (__GLIBC__ == 2 && __GLIBC_MINOR__ < 8) || \
+- (defined(_MSC_VER) && _MSC_VER < 1500)
+ git__insertsort_r(els, nel, elsize, NULL, cmp, payload);
+-#elif defined(GIT_WIN32)
+- git__qsort_r_glue glue = { cmp, payload };
+- qsort_s(els, nel, elsize, git__qsort_r_glue_cmp, &glue);
+-#elif defined(BSD)
+- git__qsort_r_glue glue = { cmp, payload };
+- qsort_r(els, nel, elsize, &glue, git__qsort_r_glue_cmp);
+-#else
+- qsort_r(els, nel, elsize, cmp, payload);
+-#endif
+ }
+
+ void git__insertsort_r(
+