Whamcloud - gitweb
libsupport: fix sort_r.h to work on FreeBSD 14
authorTheodore Ts'o <tytso@mit.edu>
Sun, 21 Apr 2024 05:07:14 +0000 (01:07 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 21 Apr 2024 05:07:14 +0000 (01:07 -0400)
commit4646451100d1d2f0761c6684480145a2709e9c2d
tree4352dcfc5197bf97119794c6572f14ceee61feeb
parent4b819954e861d1fdf8c37902e5338e76d9a11f09
libsupport: fix sort_r.h to work on FreeBSD 14

FreeBSD 14 has changed the definition of qsort_r to align it with the
POSIX, but it did this with a #define.  So when sort_r.h tries to
provide a function prototype, surround the function name with
parenthesis so it doesn't get expanded by FreeBSD's #define.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/sort_r.h