Skip to content

Commit 1b87ded

Browse files
committed
attempt to fix BSD breakage
1 parent bb833ca commit 1b87ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ pub fn self_exe_path() -> Option<Path> {
375375
KERN_PROC as c_int,
376376
KERN_PROC_PATHNAME as c_int, -1 as c_int];
377377
sysctl(vec::raw::to_ptr(mib), vec::len(mib) as c_uint,
378-
buf, &mut sz, ptr::null(),
378+
buf as *mut c_void, &mut sz, ptr::null(),
379379
0u as size_t) == (0 as c_int)
380380
}
381381
}

0 commit comments

Comments
 (0)