std::os::errno returns platform specific value. fixes #21898
This commit is contained in:
parent
ac134f7ca4
commit
b877b77f13
4 changed files with 9 additions and 9 deletions
|
@ -198,7 +198,7 @@ fn helper(input: libc::c_int, messages: Receiver<Req>, _: ()) {
|
|||
assert_eq!(fd.read(&mut buf).ok().unwrap(), 1);
|
||||
}
|
||||
|
||||
-1 if os::errno() == libc::EINTR as uint => {}
|
||||
-1 if os::errno() == libc::EINTR as i32 => {}
|
||||
n => panic!("helper thread failed in select() with error: {} ({})",
|
||||
n, os::last_os_error())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue