Whamcloud - gitweb
Provide and use sort_r() instead of qsort_r() for portability reasons
authorTheodore Ts'o <tytso@mit.edu>
Tue, 9 Feb 2021 20:27:51 +0000 (15:27 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 9 Feb 2021 20:27:51 +0000 (15:27 -0500)
commit319b6c4f1cf8adf0dee53e88a93cc6055acfd3ce
tree46168acaf121e441804c3fd8287b809c3017d914
parent4e95b372306167c51a5fc8d141eac3e1bcc75140
Provide and use sort_r() instead of qsort_r() for portability reasons

The qsort_r() function is specific to glibc.  It is not present in the
musl C library.  Worse, FreeBSD supports qsort_r, but with an
incompatible interface.  So use sort_r() from commit c8c65c1e183d
from the git repository: https://github.com/noporpoise/sort_r

https://github.com/tytso/e2fsprogs/issues/58

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/rehash.c
lib/support/sort_r.h [new file with mode: 0644]