summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2018-10-15 15:01:44 -0600
committerAlan Somers <asomers@gmail.com>2018-10-15 15:01:44 -0600
commit682bd37b48c6a9edc77a9420082ac6b3fdb4d6e6 (patch)
treeb05db16d1b05499bfa291ebe3eb935b85b6583d4 /test/sys
parent175be511693dd395e4f0c3a14cf69ef19a482cf2 (diff)
downloadnix-682bd37b48c6a9edc77a9420082ac6b3fdb4d6e6.zip
Eliminate compiler warnings, especially on non-Linux platforms
Diffstat (limited to 'test/sys')
-rw-r--r--test/sys/test_ptrace.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sys/test_ptrace.rs b/test/sys/test_ptrace.rs
index debc4517..a15a7921 100644
--- a/test/sys/test_ptrace.rs
+++ b/test/sys/test_ptrace.rs
@@ -3,6 +3,7 @@ use nix::errno::Errno;
use nix::unistd::getpid;
use nix::sys::ptrace::{self, Options};
+#[cfg(any(target_os = "android", target_os = "linux"))]
use std::mem;
#[test]