Skip to content

Commit ff26639

Browse files
committed
Move code to BSD mod
1 parent e2a51d0 commit ff26639

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/unix/bsd/mod.rs

+14
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,20 @@ extern "C" {
776776
value: *mut ::c_void,
777777
) -> ::c_int;
778778
pub fn acct(filename: *const ::c_char) -> ::c_int;
779+
#[cfg_attr(
780+
all(target_os = "macos", target_arch = "x86"),
781+
link_name = "wait4$UNIX2003"
782+
)]
783+
#[cfg_attr(
784+
all(target_os = "freebsd", any(freebsd12, freebsd11, freebsd10)),
785+
link_name = "wait4@FBSD_1.0"
786+
)]
787+
pub fn wait4(
788+
pid: ::pid_t,
789+
status: *mut ::c_int,
790+
options: ::c_int,
791+
rusage: *mut ::rusage,
792+
) -> ::pid_t;
779793
}
780794

781795
cfg_if! {

src/unix/mod.rs

-14
Original file line numberDiff line numberDiff line change
@@ -921,20 +921,6 @@ extern "C" {
921921
link_name = "wait$UNIX2003"
922922
)]
923923
pub fn wait(status: *mut ::c_int) -> pid_t;
924-
#[cfg_attr(
925-
all(target_os = "macos", target_arch = "x86"),
926-
link_name = "wait4$UNIX2003"
927-
)]
928-
#[cfg_attr(
929-
all(target_os = "freebsd", any(freebsd11, freebsd10)),
930-
link_name = "wait4@FBSD_1.0"
931-
)]
932-
pub fn wait4(
933-
pid: ::pid_t,
934-
status: *mut ::c_int,
935-
options: ::c_int,
936-
rusage: *mut ::rusage,
937-
) -> ::pid_t;
938924
#[cfg_attr(
939925
all(target_os = "macos", target_arch = "x86"),
940926
link_name = "waitpid$UNIX2003"

0 commit comments

Comments
 (0)