Skip to content

Commit

Permalink
fix: build on haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Jun 10, 2024
1 parent cf9de23 commit 8791549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/src/sys/pal/unix/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ pub fn current_exe() -> io::Result<PathBuf> {
let mut name = vec![0; libc::PATH_MAX as usize];
unsafe {
let result = libc::find_path(
std::ptr::null_mut(),
crate::ptr::null_mut(),
libc::path_base_directory::B_FIND_PATH_IMAGE_PATH,
std::ptr::null_mut(),
crate::ptr::null_mut(),
name.as_mut_ptr(),
name.len(),
);
Expand Down

0 comments on commit 8791549

Please sign in to comment.