qsort_r on Solaris 10

I am missing qsort_r, the reentrant version of qsort on Solaris 10. On Linux it seems to be part of glibc, BSD & Mac OSX also has a version (although with different order of arguments).

Does anybody know about a working or successfully ported qsort_r function for Solaris?

asked: 2015-12-03 by: Luke

Dago answers:

You could use the one from gnulib: https://www.gnu.org/software/gnulib/manual/html_node/qsort_005fr.html