summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/param
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/param')
-rw-r--r--vendor/rustix/src/param/auxv.rs29
1 files changed, 10 insertions, 19 deletions
diff --git a/vendor/rustix/src/param/auxv.rs b/vendor/rustix/src/param/auxv.rs
index 03be2a29d..19f93dc04 100644
--- a/vendor/rustix/src/param/auxv.rs
+++ b/vendor/rustix/src/param/auxv.rs
@@ -1,12 +1,9 @@
use crate::backend;
#[cfg(any(
linux_raw,
- all(
- libc,
- any(
- all(target_os = "android", target_pointer_width = "64"),
- target_os = "linux",
- )
+ any(
+ all(target_os = "android", target_pointer_width = "64"),
+ target_os = "linux",
)
))]
use crate::ffi::CStr;
@@ -39,7 +36,7 @@ pub fn page_size() -> usize {
///
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sysconf.html
/// [Linux]: https://man7.org/linux/man-pages/man3/sysconf.3.html
-#[cfg(not(target_os = "wasi"))]
+#[cfg(not(any(target_os = "vita", target_os = "wasi")))]
#[inline]
#[doc(alias = "_SC_CLK_TCK")]
pub fn clock_ticks_per_second() -> u64 {
@@ -58,12 +55,9 @@ pub fn clock_ticks_per_second() -> u64 {
/// [Linux]: https://man7.org/linux/man-pages/man3/getauxval.3.html
#[cfg(any(
linux_raw,
- all(
- libc,
- any(
- all(target_os = "android", target_pointer_width = "64"),
- target_os = "linux",
- )
+ any(
+ all(target_os = "android", target_pointer_width = "64"),
+ target_os = "linux",
)
))]
#[inline]
@@ -82,12 +76,9 @@ pub fn linux_hwcap() -> (usize, usize) {
/// [Linux]: https://man7.org/linux/man-pages/man3/getauxval.3.html
#[cfg(any(
linux_raw,
- all(
- libc,
- any(
- all(target_os = "android", target_pointer_width = "64"),
- target_os = "linux",
- )
+ any(
+ all(target_os = "android", target_pointer_width = "64"),
+ target_os = "linux",
)
))]
#[inline]