diff options
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/backtrace.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/backtrace.rs b/src/libstd/rt/backtrace.rs index 00477f8e119..80493ebb4a9 100644 --- a/src/libstd/rt/backtrace.rs +++ b/src/libstd/rt/backtrace.rs @@ -465,13 +465,13 @@ mod imp { // be in "permanent memory", so we copy it to a static and then use the // static as the pointer. // - // FIXME: We also call self_exe_name() on DragonFly BSD. I haven't + // FIXME: We also call self_exe_name() on DragonFly BSD. I haven't // tested if this is required or not. unsafe fn init_state() -> *mut backtrace_state { static mut STATE: *mut backtrace_state = 0 as *mut backtrace_state; static mut LAST_FILENAME: [libc::c_char, ..256] = [0, ..256]; if !STATE.is_null() { return STATE } - let selfname = if cfg!(target_os = "freebsd") || + let selfname = if cfg!(target_os = "freebsd") || cfg!(target_os = "dragonfly") { os::self_exe_name() } else { |
