Skip to content

Commit 4f47a74

Browse files
authored
Declare O_RSYNC for Android.
Bionic defines it to be `O_SYNC`.
1 parent 766efc9 commit 4f47a74

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)