-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a
linux_kernel
cfg, to simplify a common platform set. (#675)
"android" and "linux" share much in common, so add a `linux_kernel` config to factor out `any(target_os = "android", target_os = "linux")`.
- Loading branch information
1 parent
1c1fc80
commit 730b0d2
Showing
91 changed files
with
380 additions
and
567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
pub(crate) use libc::*; | ||
|
||
/// `PROC_SUPER_MAGIC`—The magic number for the procfs filesystem. | ||
#[cfg(all(any(target_os = "android", target_os = "linux"), target_env = "musl"))] | ||
#[cfg(all(linux_kernel, target_env = "musl"))] | ||
pub(crate) const PROC_SUPER_MAGIC: u32 = 0x0000_9fa0; | ||
|
||
/// `NFS_SUPER_MAGIC`—The magic number for the NFS filesystem. | ||
#[cfg(all(any(target_os = "android", target_os = "linux"), target_env = "musl"))] | ||
#[cfg(all(linux_kernel, target_env = "musl"))] | ||
pub(crate) const NFS_SUPER_MAGIC: u32 = 0x0000_6969; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.