Skip to content

Commit 26a47ed

Browse files
committed
ohos: Don't emit duplicate lfs64 definitions
The musl module is enabled on ohos, so these are duplicates.
1 parent 7d6b5ca commit 26a47ed

File tree

1 file changed

+1
-1
lines changed
  • src/unix/linux_like/linux

1 file changed

+1
-1
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6723,7 +6723,7 @@ extern "C" {
67236723
//
67246724
// * musl has 64-bit versions only so aliases the LFS64 symbols to the standard ones
67256725
cfg_if! {
6726-
if #[cfg(not(target_env = "musl"))] {
6726+
if #[cfg(not(any(target_env = "musl", target_os = "ohos")))] {
67276727
extern "C" {
67286728
pub fn fallocate64(fd: c_int, mode: c_int, offset: off64_t, len: off64_t) -> c_int;
67296729
pub fn fgetpos64(stream: *mut crate::FILE, ptr: *mut fpos64_t) -> c_int;

0 commit comments

Comments
 (0)