File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use std::{mem, process};
1313use std:: path:: PathBuf ;
1414use std:: ptr;
1515
16- #[ cfg( not ( target_os = "macos" ) ) ]
16+ #[ cfg( target_os = "linux" ) ]
1717use libc:: PATH_MAX ;
1818
1919use libc:: pid_t;
@@ -24,7 +24,9 @@ use crate::libproc::task_info::{TaskAllInfo, TaskInfo};
2424use crate :: libproc:: thread_info:: ThreadInfo ;
2525use crate :: libproc:: work_queue_info:: WorkQueueInfo ;
2626
27- use self :: libc:: { c_char, c_int, c_void, readlink} ;
27+ #[ cfg( target_os = "linux" ) ]
28+ use self :: libc:: { c_char, readlink} ;
29+ use self :: libc:: { c_int, c_void} ;
2830
2931// Since we cannot access C macros for constants from Rust - I have had to redefine this, based on Apple's source code
3032// See http://opensource.apple.com/source/Libc/Libc-594.9.4/darwin/libproc.c
You can’t perform that action at this time.
0 commit comments