Skip to content

Commit

Permalink
Add missing imports to dladdr.rs for Mac.
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondLovesYou committed Aug 22, 2015
1 parent 7925c79 commit 6cbef95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libstd/sys/unix/backtrace/printing/dladdr.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 6cbef95

Please sign in to comment.