diff options
author | Edward Thomson <ethomsnon@microsoft.com> | 2013-05-25 12:35:55 -0400 |
---|---|---|
committer | Edward Thomson <ethomsnon@microsoft.com> | 2013-05-25 12:35:55 -0400 |
commit | c37fb41ae02f7bd99237720181d0736ab1de9bc0 (patch) | |
tree | a7bdf9862b42b16f2616dae1ed6c089efbcbb46d | |
parent | 85281328be6341794341a9a46b54e3a557b2b889 (diff) | |
download | libgit2-c37fb41ae02f7bd99237720181d0736ab1de9bc0.tar.gz |
qsort_r appeared in glibc 2.8
-rw-r--r-- | src/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c index a6f87a0d7..da15a039d 100644 --- a/src/util.c +++ b/src/util.c @@ -686,7 +686,8 @@ 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__) || \ + (__GLIBC__ == 2 && __GLIBC_MINOR__ < 8) git__insertsort_r(els, nel, elsize, NULL, cmp, payload); #elif defined(GIT_WIN32) git__qsort_r_glue glue = { cmp, payload }; |