Also raise fd limit on tvOS when testing
This commit is contained in:
parent
214d588a5b
commit
6b488cd302
1 changed files with 2 additions and 2 deletions
|
@ -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() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue