Skip to content

Commit

Permalink
Don't merge in O_LARGEFILE since it's a noop and not defined on some …
Browse files Browse the repository at this point in the history
…platforms
  • Loading branch information
bossmc committed May 31, 2023
1 parent 5e75244 commit 75ac488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/linux_like/linux/musl/lfs64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub unsafe extern "C" fn open64(
flags: ::c_int,
mode: ::mode_t,
) -> ::c_int {
::open(pathname, flags | ::O_LARGEFILE, mode)
::open(pathname, flags, mode)
}

#[inline]
Expand All @@ -124,7 +124,7 @@ pub unsafe extern "C" fn openat64(
flags: ::c_int,
mode: ::mode_t,
) -> ::c_int {
::openat(dirfd, pathname, flags | ::O_LARGEFILE, mode)
::openat(dirfd, pathname, flags, mode)
}

#[inline]
Expand Down

0 comments on commit 75ac488

Please sign in to comment.