diff options
author | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2022-01-10 22:42:25 -0600 |
---|---|---|
committer | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2022-01-10 22:43:43 -0600 |
commit | e6bd49cf31d520406482b13be5bf09c1fc10d9b9 (patch) | |
tree | 061cb89d093a3e745a5c00177380cd46c362b9ee | |
parent | c1b386055f3595186c30e28a60f8fc36aae7cfff (diff) | |
download | rust-libc-e6bd49cf31d520406482b13be5bf09c1fc10d9b9.tar.gz |
Android defines _POSIX_VDISABLE
-rw-r--r-- | libc-test/semver/android.txt | 1 | ||||
-rw-r--r-- | src/unix/linux_like/android/mod.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libc-test/semver/android.txt b/libc-test/semver/android.txt index 7c382107fe..b390a78f86 100644 --- a/libc-test/semver/android.txt +++ b/libc-test/semver/android.txt @@ -2444,6 +2444,7 @@ _PC_REC_XFER_ALIGN _PC_SYMLINK_MAX _PC_SYNC_IO _PC_VDISABLE +_POSIX_VDISABLE _SC_2_CHAR_TERM _SC_2_C_BIND _SC_2_C_DEV diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index c8eee6c457..57f9aedb0b 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -812,6 +812,8 @@ pub const TFD_TIMER_CANCEL_ON_SET: ::c_int = 2; pub const USER_PROCESS: ::c_short = 7; +pub const _POSIX_VDISABLE: ::cc_t = 0; + // linux/falloc.h pub const FALLOC_FL_KEEP_SIZE: ::c_int = 0x01; pub const FALLOC_FL_PUNCH_HOLE: ::c_int = 0x02; |