diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-07-25 16:20:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-25 16:20:10 +0000 |
commit | 981df92e3ae99de778fd55a1979cb7899c898fc3 (patch) | |
tree | e961b7aac0523d3e03d146903931bfb675f1bd86 /src/sys | |
parent | 00f69814fe1eedb02464e976a2ebed3c1ecd973b (diff) | |
parent | e357d60cde1c3cf04ac4c17d33e5056c15028459 (diff) | |
download | nix-981df92e3ae99de778fd55a1979cb7899c898fc3.zip |
Merge #1773
1773: Add memfd for target_os = "android" r=asomers a=flxo
Memory fds (`memfd`) are implemented and exported by Androids bionic.
Export the `memfd` module if the target os is `android`.
https://cs.android.com/android/platform/superproject/+/master:bionic/libc/include/sys/mman.h;drc=23c7543b8e608ebcbb38b952761b54bb56065577;bpv=1;bpt=1;l=182
Co-authored-by: Felix Obenhuber <felix@obenhuber.de>
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/mod.rs b/src/sys/mod.rs index ddd4fdfc..80c75e1f 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -50,7 +50,7 @@ feature! { #[macro_use] pub mod ioctl; -#[cfg(target_os = "linux")] +#[cfg(any(target_is = "android", target_os = "linux"))] feature! { #![feature = "fs"] pub mod memfd; |