Skip to content

Commit 6cbef95

Browse files
Add missing imports to dladdr.rs for Mac.
1 parent 7925c79 commit 6cbef95

File tree

1 file changed

+6
-0
lines changed
  • src/libstd/sys/unix/backtrace/printing

1 file changed

+6
-0
lines changed

src/libstd/sys/unix/backtrace/printing/dladdr.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use io;
12+
use io::prelude::*;
13+
use libc;
14+
1115
pub fn print(w: &mut Write, idx: isize, addr: *mut libc::c_void,
1216
_symaddr: *mut libc::c_void) -> io::Result<()> {
1317
use sys::backtrace::{output};
1418
use intrinsics;
19+
use ffi::CStr;
20+
1521
#[repr(C)]
1622
struct Dl_info {
1723
dli_fname: *const libc::c_char,

0 commit comments

Comments
 (0)