1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

feat(node): use i32 for priority_t on MacOS and {Free,Open}BSD (#20286)

Reference from the FreeBSD port

3afa24c6e3/www/deno/files/patch-ext_node_ops_os.rs
This commit is contained in:
VlkrS 2023-08-25 18:46:19 +02:00 committed by Bartek Iwańczuk
parent 60531fa61c
commit cda9601d2a
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -60,7 +60,11 @@ mod priority {
use libc::id_t;
use libc::PRIO_PROCESS;
#[cfg(target_os = "macos")]
#[cfg(any(
target_os = "macos",
target_os = "freebsd",
target_os = "openbsd"
))]
#[allow(non_camel_case_types)]
type priority_t = i32;
#[cfg(target_os = "linux")]