Skip to content

Commit 3edc2a3

Browse files
committed
solarish: Fix libsendfile symbol dependency
1 parent 998e886 commit 3edc2a3

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/unix/solarish/mod.rs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3147,18 +3147,7 @@ extern "C" {
31473147
pub fn sysinfo(command: ::c_int, buf: *mut ::c_char, count: ::c_long) -> ::c_int;
31483148

31493149
pub fn faccessat(fd: ::c_int, path: *const ::c_char, amode: ::c_int, flag: ::c_int) -> ::c_int;
3150-
}
31513150

3152-
#[link(name = "sendfile")]
3153-
extern "C" {
3154-
pub fn sendfile(out_fd: ::c_int, in_fd: ::c_int, off: *mut ::off_t, len: ::size_t)
3155-
-> ::ssize_t;
3156-
pub fn sendfilev(
3157-
fildes: ::c_int,
3158-
vec: *const sendfilevec_t,
3159-
sfvcnt: ::c_int,
3160-
xferred: *mut ::size_t,
3161-
) -> ::ssize_t;
31623151
// #include <link.h>
31633152
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
31643153
pub fn dl_iterate_phdr(
@@ -3205,6 +3194,18 @@ extern "C" {
32053194
pub fn backtrace_symbols_fd(buffer: *const *mut ::c_void, size: ::c_int, fd: ::c_int);
32063195
}
32073196

3197+
#[link(name = "sendfile")]
3198+
extern "C" {
3199+
pub fn sendfile(out_fd: ::c_int, in_fd: ::c_int, off: *mut ::off_t, len: ::size_t)
3200+
-> ::ssize_t;
3201+
pub fn sendfilev(
3202+
fildes: ::c_int,
3203+
vec: *const sendfilevec_t,
3204+
sfvcnt: ::c_int,
3205+
xferred: *mut ::size_t,
3206+
) -> ::ssize_t;
3207+
}
3208+
32083209
#[link(name = "lgrp")]
32093210
extern "C" {
32103211
pub fn lgrp_init(view: lgrp_view_t) -> lgrp_cookie_t;

0 commit comments

Comments
 (0)