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:
parent
60531fa61c
commit
cda9601d2a
1 changed files with 5 additions and 1 deletions
|
@ -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")]
|
||||
|
|
Loading…
Reference in a new issue