qsort_r appeared in glibc 2.8
Merge pull request #1609 from ethomson/qsort_r_glibc

qsort_r appeared in glibc 2.8