Skip to content

Commit ff36142

Browse files
committed
Enable ptrace on all Linux platforms
Nothing that nix currently binds is architecture-specific, and Android supports ptrace just as much as non-Android Linux.
1 parent 274b09e commit ff36142

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/sys/mod.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ pub mod uio;
5252

5353
pub mod time;
5454

55-
#[cfg(all(target_os = "linux",
56-
any(target_arch = "x86",
57-
target_arch = "x86_64",
58-
target_arch = "arm")),
59-
)]
55+
#[cfg(any(target_os = "linux", target_os = "android"))]
6056
pub mod ptrace;
6157

6258
pub mod select;

src/sys/ptrace.rs

-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ use std::{mem, ptr};
22
use {Errno, Error, Result};
33
use libc::{pid_t, c_void, c_long, siginfo_t};
44

5-
#[cfg(all(target_os = "linux",
6-
any(target_arch = "x86",
7-
target_arch = "x86_64",
8-
target_arch = "arm")),
9-
)]
105
pub mod ptrace {
116
use libc::c_int;
127

0 commit comments

Comments
 (0)