Skip to content

Commit 75ac488

Browse files
committed
Don't merge in O_LARGEFILE since it's a noop and not defined on some platforms
1 parent 5e75244 commit 75ac488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/linux_like/linux/musl/lfs64.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub unsafe extern "C" fn open64(
114114
flags: ::c_int,
115115
mode: ::mode_t,
116116
) -> ::c_int {
117-
::open(pathname, flags | ::O_LARGEFILE, mode)
117+
::open(pathname, flags, mode)
118118
}
119119

120120
#[inline]
@@ -124,7 +124,7 @@ pub unsafe extern "C" fn openat64(
124124
flags: ::c_int,
125125
mode: ::mode_t,
126126
) -> ::c_int {
127-
::openat(dirfd, pathname, flags | ::O_LARGEFILE, mode)
127+
::openat(dirfd, pathname, flags, mode)
128128
}
129129

130130
#[inline]

0 commit comments

Comments
 (0)