rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / runtime / node22 / patches / 01-cast-pid_t.patch
blob2a1e6dcd6a3145fa749de2b99aeb410dbac07ae8
1 --- node-v15.5.1/src/node_process_object.cc.orig 2021-01-04 14:19:54.000000000 +0000
2 +++ node-v15.5.1/src/node_process_object.cc 2021-01-13 14:30:42.835547052 +0000
3 @@ -66,7 +66,11 @@
5 static void GetParentProcessId(Local<Name> property,
6 const PropertyCallbackInfo<Value>& info) {
7 - info.GetReturnValue().Set(uv_os_getppid());
8 +#if defined(__sun__)
9 + info.GetReturnValue().Set(static_cast<int32_t>(uv_os_getppid()));
10 +#else
11 + info.GetReturnValue().Set(uv_os_getppid());
12 +#endif
15 MaybeLocal<Object> CreateProcessObject(Environment* env) {