1
Fork 0

Also raise fd limit on tvOS when testing

This commit is contained in:
Mads Marquart 2024-04-28 18:11:43 +02:00
parent 214d588a5b
commit 6b488cd302

View file

@ -4,7 +4,7 @@
/// on the number of cores available.
///
/// This fixes issue #7772.
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "watchos", target_os = "visionos"))]
#[cfg(target_vendor = "apple")]
#[allow(non_camel_case_types)]
pub unsafe fn raise_fd_limit() {
use std::cmp;
@ -50,5 +50,5 @@ pub unsafe fn raise_fd_limit() {
}
}
#[cfg(not(any(target_os = "macos", target_os = "ios")))]
#[cfg(not(target_vendor = "apple"))]
pub unsafe fn raise_fd_limit() {}