Skip to content

Commit

Permalink
[#604] Refactor dirfd usage on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Jan 31, 2025
1 parent f7063e5 commit 56bff0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iceoryx2-pal/posix/src/macos/dirent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub unsafe fn closedir(dirp: *mut DIR) -> int {
}

pub unsafe fn dirfd(dirp: *mut DIR) -> int {
internal::iox2_dirfd(dirp)
internal::dirfd(dirp)
}

pub unsafe fn readdir_r(dirp: *mut DIR, entry: *mut dirent, result: *mut *mut dirent) -> int {
Expand All @@ -45,4 +45,7 @@ mod internal {
extern "C" {
pub(super) fn iox2_dirfd(dir: *mut DIR) -> int;
}
unsafe extern "C" {
pub(super) fn dirfd(dirp: *mut DIR) -> int;
}
}

0 comments on commit 56bff0c

Please sign in to comment.