Skip to content

Commit

Permalink
Fix compilation on macos without std (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
niluxv authored Nov 14, 2022
1 parent 431a7b1 commit 1bfb223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/libc/fs/syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ pub(crate) fn getpath(fd: BorrowedFd<'_>) -> io::Result<CString> {
// `F_GETPATH` in terms of `MAXPATHLEN`, and there are no
// alternatives. If a better method is invented, it should be used
// instead.
let mut buf = vec![0; c::PATH_MAX as usize];
let mut buf = alloc::vec![0; c::PATH_MAX as usize];

// From the [macOS `fcntl` man page]:
// `F_GETPATH` - Get the path of the file descriptor `Fildes`. The argument
Expand Down

0 comments on commit 1bfb223

Please sign in to comment.