Skip to content

Commit 3154b7d

Browse files
committed
Fix build on Linux & Rust nightly
1 parent 6479adf commit 3154b7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sched.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ mod ffi {
120120
use libc::{c_void, c_int, pid_t, size_t};
121121
use super::CpuSet;
122122

123-
type CloneCb = extern "C" fn (data: *const super::CloneCb) -> c_int;
123+
pub type CloneCb = extern "C" fn (data: *const super::CloneCb) -> c_int;
124124

125125
// We cannot give a proper #[repr(C)] to super::CloneCb
126126
#[allow(improper_ctypes)]

0 commit comments

Comments
 (0)