From 87915497e69bbbd0e979d9ce6531485fa0bafa39 Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Mon, 10 Jun 2024 10:38:00 +0800 Subject: [PATCH] fix: build on haiku --- std/src/sys/pal/unix/os.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/src/sys/pal/unix/os.rs b/std/src/sys/pal/unix/os.rs index ae1e42c419b91..2e71ceceb58b1 100644 --- a/std/src/sys/pal/unix/os.rs +++ b/std/src/sys/pal/unix/os.rs @@ -465,9 +465,9 @@ pub fn current_exe() -> io::Result { 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(), );