From 47dc5fee5e289e907412a6dc30b739d252670fff Mon Sep 17 00:00:00 2001 From: Philipp Matthias Schaefer Date: Thu, 14 Apr 2016 20:30:42 +0200 Subject: [PATCH] Cast function item to function pointer in order to appease compiler. This is necessary because of compiler changes. For further information look at rust-lang/rust#19925. --- src/sched.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sched.rs b/src/sched.rs index 303084460c..7216a2d887 100644 --- a/src/sched.rs +++ b/src/sched.rs @@ -205,7 +205,10 @@ pub fn clone(mut cb: CloneCb, stack: &mut [u8], flags: CloneFlags) -> Result isize>) -> i32), + ptr as *mut c_void, + flags.bits(), + &mut cb) }; Errno::result(res)