mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 13:00:36 -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
c272d26ae8
commit
37de5e8623
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…
Add table
Reference in a new issue