Skip to content

Commit 8967101

Browse files
folkertdevasomers
andauthored
Apply suggestions from code review
Co-authored-by: Alan Somers <asomers@gmail.com>
1 parent 11174f2 commit 8967101

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ extern "C" {
428428
// Argument order of the function pointer changed in FreeBSD 14. From 14 onwards the signature
429429
// matches the POSIX specification by having the third argument be a mutable pointer, on
430430
// earlier versions the first argument is the mutable pointer.
431+
#[link_name = "qsort_r@FBSD_1.0"]
431432
pub fn qsort_r(
432433
base: *mut c_void,
433434
num: size_t,

src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ extern "C" {
469469
pub fn dirname(path: *mut c_char) -> *mut c_char;
470470
pub fn basename(path: *mut c_char) -> *mut c_char;
471471

472+
#[link_name = "qsort_r@FBSD_1.0"]
472473
pub fn qsort_r(
473474
base: *mut c_void,
474475
num: size_t,

src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ extern "C" {
508508
pub fn dirname(path: *mut c_char) -> *mut c_char;
509509
pub fn basename(path: *mut c_char) -> *mut c_char;
510510

511+
#[link_name = "qsort_r@FBSD_1.0"]
511512
pub fn qsort_r(
512513
base: *mut c_void,
513514
num: size_t,

0 commit comments

Comments
 (0)