Skip to content

Commit

Permalink
Enable ptrace on all Linux platforms
Browse files Browse the repository at this point in the history
Nothing that nix currently binds is architecture-specific, and Android
supports ptrace just as much as non-Android Linux.
  • Loading branch information
geofft committed Jun 20, 2017
1 parent 274b09e commit ff36142
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions src/sys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ pub mod uio;

pub mod time;

#[cfg(all(target_os = "linux",
any(target_arch = "x86",
target_arch = "x86_64",
target_arch = "arm")),
)]
#[cfg(any(target_os = "linux", target_os = "android"))]
pub mod ptrace;

pub mod select;
Expand Down
5 changes: 0 additions & 5 deletions src/sys/ptrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ use std::{mem, ptr};
use {Errno, Error, Result};
use libc::{pid_t, c_void, c_long, siginfo_t};

#[cfg(all(target_os = "linux",
any(target_arch = "x86",
target_arch = "x86_64",
target_arch = "arm")),
)]
pub mod ptrace {
use libc::c_int;

Expand Down

0 comments on commit ff36142

Please sign in to comment.