]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
newlib has glibc-style qsort_r()
authorJon Turney <jon.turney@dronecode.org.uk>
Mon, 5 Jun 2017 13:50:44 +0000 (14:50 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Mon, 5 Jun 2017 14:20:24 +0000 (15:20 +0100)
src/util.c

index b2e917970116787b56de04c4ccce34140b648fa2..65c86294c1ab7ee1b4fbec9f206b81d87c0ce689 100644 (file)
@@ -139,7 +139,7 @@ solv_timems(unsigned int subtract)
 
    see also: http://sources.redhat.com/ml/libc-alpha/2008-12/msg00003.html
  */
-#if defined(__GLIBC__) && (defined(HAVE_QSORT_R) || defined(HAVE___QSORT_R))
+#if (defined(__GLIBC__) || defined(__NEWLIB__)) && (defined(HAVE_QSORT_R) || defined(HAVE___QSORT_R))
 
 void
 solv_sort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *, void *), void *compard)