Add missing imports to dladdr.rs for Mac.
This commit is contained in:
parent
7925c7972e
commit
6cbef957f6
1 changed files with 6 additions and 0 deletions
|
|
@ -8,10 +8,16 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use io;
|
||||
use io::prelude::*;
|
||||
use libc;
|
||||
|
||||
pub fn print(w: &mut Write, idx: isize, addr: *mut libc::c_void,
|
||||
_symaddr: *mut libc::c_void) -> io::Result<()> {
|
||||
use sys::backtrace::{output};
|
||||
use intrinsics;
|
||||
use ffi::CStr;
|
||||
|
||||
#[repr(C)]
|
||||
struct Dl_info {
|
||||
dli_fname: *const libc::c_char,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue