Skip to content

Commit 9d70c06

Browse files
committed
Auto merge of #1997 - whitequark:patch-1, r=JohnTitor
Declare `O_RSYNC` for Android Bionic [defines](https://github.com/aosp-mirror/platform_bionic/blob/35bb46188ce8dbbb8bde0702e6cc6bf1d0795980/libc/include/fcntl.h#L57) it to be `O_SYNC`. For context, [this](bytecodealliance/wasmtime#2502 (review)) is where this option was necessary.
2 parents 766efc9 + 4f47a74 commit 9d70c06

File tree

1 file changed

+1
-0
lines changed
  • src/unix/linux_like/android

1 file changed

+1
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,7 @@ pub const O_SYNC: ::c_int = 0x101000;
11011101
pub const O_ASYNC: ::c_int = 0x2000;
11021102
pub const O_NDELAY: ::c_int = 0x800;
11031103
pub const O_DSYNC: ::c_int = 4096;
1104+
pub const O_RSYNC: ::c_int = O_SYNC;
11041105

11051106
pub const NI_MAXHOST: ::size_t = 1025;
11061107
pub const NI_MAXSERV: ::size_t = 32;

0 commit comments

Comments
 (0)