Skip to content

Commit

Permalink
fix building errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bpangWR committed Aug 17, 2020
1 parent 8d185ca commit ddbefe0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library/std/src/sys/vxworks/fd.rs
Expand Up @@ -53,7 +53,7 @@ impl FileDesc {
}

#[inline]
fn is_read_vectored(&self) -> bool {
pub fn is_read_vectored(&self) -> bool {
true
}

Expand Down
6 changes: 3 additions & 3 deletions library/std/src/sys/vxworks/process/process_common.rs
Expand Up @@ -352,7 +352,7 @@ impl ExitStatus {

fn exited(&self) -> bool {
/*unsafe*/
{ libc::WIFEXITED(self.0) }
libc::WIFEXITED(self.0)
}

pub fn success(&self) -> bool {
Expand All @@ -361,15 +361,15 @@ impl ExitStatus {

pub fn code(&self) -> Option<i32> {
if self.exited() {
Some(/*unsafe*/ { libc::WEXITSTATUS(self.0) })
Some(/*unsafe*/ libc::WEXITSTATUS(self.0))
} else {
None
}
}

pub fn signal(&self) -> Option<i32> {
if !self.exited() {
Some(/*unsafe*/ { libc::WTERMSIG(self.0) })
Some(/*unsafe*/ libc::WTERMSIG(self.0))
} else {
None
}
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/sys/vxworks/thread_local_dtor.rs
Expand Up @@ -2,6 +2,6 @@
#![unstable(feature = "thread_local_internals", issue = "none")]

pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
use crate::sys_common::thread_local::register_dtor_fallback;
use crate::sys_common::thread_local_dtor::register_dtor_fallback;
register_dtor_fallback(t, dtor);
}

0 comments on commit ddbefe0

Please sign in to comment.