From 75ac488063b968699c48881b59d525cd46ca95eb Mon Sep 17 00:00:00 2001 From: Andy Caldwell <andycaldwell@microsoft.com> Date: Wed, 31 May 2023 17:20:39 +0100 Subject: [PATCH] Don't merge in O_LARGEFILE since it's a noop and not defined on some platforms --- src/unix/linux_like/linux/musl/lfs64.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix/linux_like/linux/musl/lfs64.rs b/src/unix/linux_like/linux/musl/lfs64.rs index 031833b64687f..64759e8bd4813 100644 --- a/src/unix/linux_like/linux/musl/lfs64.rs +++ b/src/unix/linux_like/linux/musl/lfs64.rs @@ -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] @@ -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]