diff options
author | VlkrS <47375452+VlkrS@users.noreply.github.com> | 2023-08-25 18:46:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 16:46:19 +0000 |
commit | 37de5e8623bc2c96dfd577d2a496eab62358b73f (patch) | |
tree | 6c3869312d64a5bb4f5dd679c3a248c2a1a8d1bc | |
parent | c272d26ae84ddf8ce1aa0456fbecedff102a64b0 (diff) |
feat(node): use i32 for priority_t on MacOS and {Free,Open}BSD (#20286)
Reference from the FreeBSD port
https://github.com/freebsd/freebsd-ports/blob/3afa24c6e301832f76304bb55f4e9ee72858c254/www/deno/files/patch-ext_node_ops_os.rs
-rw-r--r-- | ext/node/ops/os.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/node/ops/os.rs b/ext/node/ops/os.rs index 59bfba4b8..44ff0a3a7 100644 --- a/ext/node/ops/os.rs +++ b/ext/node/ops/os.rs @@ -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")] |