diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-08-29 19:33:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-29 19:33:04 -0500 |
| commit | a7fd14f89d1aea5cb979dcf1473abac74a1f8cc5 (patch) | |
| tree | b18b3597e69d75930290cfb4e8d3d14b6081c4d9 | |
| parent | 4d5ca4cd3865b3ad3ea38e99d43eb8e846e9b7ed (diff) | |
| parent | e3f1e94be775db497c15e2119d09b62bb834c91f (diff) | |
| download | rust-a7fd14f89d1aea5cb979dcf1473abac74a1f8cc5.tar.gz rust-a7fd14f89d1aea5cb979dcf1473abac74a1f8cc5.zip | |
Rollup merge of #145991 - GrigorenkoPV:haiku, r=tgross35
std: haiku: fix `B_FIND_PATH_IMAGE_PATH` Fixes https://github.com/rust-lang/rust/issues/145952, which was caused by https://github.com/rust-lang/libc/pull/4575 ```````@rustbot``````` label T-libs O-haiku
| -rw-r--r-- | library/std/src/sys/pal/unix/os.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/os.rs b/library/std/src/sys/pal/unix/os.rs index 0b1abe88275..aec089f7e5c 100644 --- a/library/std/src/sys/pal/unix/os.rs +++ b/library/std/src/sys/pal/unix/os.rs @@ -447,7 +447,7 @@ pub fn current_exe() -> io::Result<PathBuf> { unsafe { let result = libc::find_path( crate::ptr::null_mut(), - libc::path_base_directory::B_FIND_PATH_IMAGE_PATH, + libc::B_FIND_PATH_IMAGE_PATH, crate::ptr::null_mut(), name.as_mut_ptr(), name.len(), |
